Norod78/simpsons-blip-captions
Viewer • Updated • 755 • 115 • 7
How to use HuaNG038B/sd14-lora-simpsons-style with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("HuaNG038B/sd14-lora-simpsons-style")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]NYCU Image and Video Generation 2026 — Lab2 Task 2-1 (student 113550175). Non-commercial coursework.
CompVis/stable-diffusion-v1-4train_lora.py (via train_lora_custom.sh), 512 px, batch 4, 20 epochs (3780 steps), lr 1e-4 constant, fp16, random flip, seed 42, UNet LoRAimport torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16).to("cuda")
pipe.load_lora_weights("HuaNG038B/sd14-lora-simpsons-style")
pipe("a man with sunglasses", num_inference_steps=30, guidance_scale=7.5).images[0]
Base model
CompVis/stable-diffusion-v1-4