Instructions to use tianweiy/DMD2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tianweiy/DMD2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tianweiy/DMD2", 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
|
@@ -129,7 +129,8 @@ gen_images = pipe(
|
|
| 129 |
num_inference_steps=4,
|
| 130 |
guidance_scale=0,
|
| 131 |
adapter_conditioning_scale=0.8,
|
| 132 |
-
adapter_conditioning_factor=0.5
|
|
|
|
| 133 |
).images[0]
|
| 134 |
gen_images.save('out_canny.png')
|
| 135 |
```
|
|
|
|
| 129 |
num_inference_steps=4,
|
| 130 |
guidance_scale=0,
|
| 131 |
adapter_conditioning_scale=0.8,
|
| 132 |
+
adapter_conditioning_factor=0.5,
|
| 133 |
+
timesteps=[999, 749, 499, 249]
|
| 134 |
).images[0]
|
| 135 |
gen_images.save('out_canny.png')
|
| 136 |
```
|