Instructions to use yresearch/swd-medium-4-steps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yresearch/swd-medium-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-medium-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
- Draw Things
- DiffusionBee
Add library_name and pipeline_tag
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
| 4 |
# Scale-wise Distillation 3.5 Medium
|
| 5 |
Scale-wise Distillation (SwD) is a novel framework for accelerating diffusion models (DMs)
|
| 6 |
by progressively increasing spatial resolution during the generation process.
|
|
@@ -10,4 +13,4 @@ while maintaining or even improving image quality.
|
|
| 10 |
|
| 11 |
## Usage
|
| 12 |
To generate images using SwD, go to <a href="https://github.com/yandex-research/swd ">GitHub</a>
|
| 13 |
-
or <a href="https://huggingface.co/spaces/dbaranchuk/Scale-wise-Distillation">Hugging Face's demo </a>.
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
pipeline_tag: text-to-image
|
| 5 |
---
|
| 6 |
+
|
| 7 |
# Scale-wise Distillation 3.5 Medium
|
| 8 |
Scale-wise Distillation (SwD) is a novel framework for accelerating diffusion models (DMs)
|
| 9 |
by progressively increasing spatial resolution during the generation process.
|
|
|
|
| 13 |
|
| 14 |
## Usage
|
| 15 |
To generate images using SwD, go to <a href="https://github.com/yandex-research/swd ">GitHub</a>
|
| 16 |
+
or <a href="https://huggingface.co/spaces/dbaranchuk/Scale-wise-Distillation">Hugging Face's demo </a>.
|