Instructions to use Qilex/magic-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Qilex/magic-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qilex/magic-diffusion", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,6 +33,7 @@ prompt = "mtg style Tony Stark, in a city"
|
|
| 33 |
with torch.cuda.amp.autocast(True):
|
| 34 |
image = pipeline(prompt, num_inference_steps=40, guidance_scale=8, height = 512, width = 712, scheduler = "DDIM").images[0]
|
| 35 |
image.save(f"img.png")
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
|
|
|
|
| 33 |
with torch.cuda.amp.autocast(True):
|
| 34 |
image = pipeline(prompt, num_inference_steps=40, guidance_scale=8, height = 512, width = 712, scheduler = "DDIM").images[0]
|
| 35 |
image.save(f"img.png")
|
| 36 |
+
|
| 37 |
```
|
| 38 |
|
| 39 |
|