Views
No views yet
stabilityai/stable-diffusion-xl-base-1.0 using PEFT/LoRA techniques to allow lightweight adaptation. It specializes in generating visually consistent NSDA-style posters.1from diffusers import StableDiffusionXLPipeline
2import torch
3
4pipe = StableDiffusionXLPipeline.from_pretrained(
5 "stabilityai/stable-diffusion-xl-base-1.0",
6 torch_dtype=torch.float16
7).to("cuda")
8
9pipe.load_lora_weights("path_to_your_lora_weights")
10
11prompt = "NSDA style poster, Join our hackathon 2025, Prussian blue #013463 and brown #7B3F00, bold text"
12image = pipe(prompt).images[0]
13image.save("nsda_poster.png")
14
15
16
17