Instructions to use yresearch/swd-large-4-steps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yresearch/swd-large-4-steps with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("yresearch/swd-large-4-steps", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,7 +29,7 @@ pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.
|
|
| 29 |
torch_dtype=torch.float16,
|
| 30 |
custom_pipeline='quickjkee/swd_pipeline')
|
| 31 |
pipe = pipe.to("cuda")
|
| 32 |
-
lora_path = 'yresearch/swd-large-
|
| 33 |
pipe.transformer = PeftModel.from_pretrained(
|
| 34 |
pipe.transformer,
|
| 35 |
lora_path,
|
|
|
|
| 29 |
torch_dtype=torch.float16,
|
| 30 |
custom_pipeline='quickjkee/swd_pipeline')
|
| 31 |
pipe = pipe.to("cuda")
|
| 32 |
+
lora_path = 'yresearch/swd-large-4-steps'
|
| 33 |
pipe.transformer = PeftModel.from_pretrained(
|
| 34 |
pipe.transformer,
|
| 35 |
lora_path,
|