Views
No views yet
tsmini.stabilityai/stable-diffusion-3-medium-diffusers)| Parameter | Value |
|---|---|
| Training script | diffusers/examples/dreambooth/train_dreambooth_lora_sd3.py |
| Instance prompt | "in the style of tsmini" |
| Resolution | 1024 |
| Train batch size | 1 |
| Gradient accumulation steps | 4 |
| Learning rate | 1e-4 |
| LR scheduler | constant |
| Max train steps | 1000 |
| LoRA rank | 16 |
| LoRA alpha | 16 |
| Mixed precision | bf16 |
| Gradient checkpointing | enabled |
1import torch
2from diffusers import StableDiffusion3Pipeline
3
4pipe = StableDiffusion3Pipeline.from_pretrained(
5 "stabilityai/stable-diffusion-3-medium-diffusers",
6 torch_dtype=torch.bfloat16,
7).to("cuda")
8
9# Load LoRA
10pipe.load_lora_weights("your-username/sd3-lora-tsmini", weight_name="pytorch_lora_weights.safetensors")
11
12# Generate with style
13image = pipe(
14 "tsmini, tilt-shift miniature photography, miniature effect, aerial view, shallow depth of field, a city street at sunset with glowing streets",
15 num_inference_steps=28,
16 guidance_scale=7.0,
17 height=1024,
18 width=1024,
19).images[0]
20image.save("output.png")| Scale | Quality | Style Strength |
|---|---|---|
| 0.5 | Good | Weak |
| 0.75 | Good | Moderate |
| 1.0 | Best | Strong |
| 1.5 | Artifacts appear | Too strong |
| 2.0 | Severe artifacts | Overloaded |
eval_images/ folder for full comparison images.pipe.set_adapters(["tsmini"], adapter_weights=[scale])