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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,6 +41,7 @@ with torch.cuda.amp.autocast(True):
|
|
| 41 |
image.save(f"img.png")
|
| 42 |
|
| 43 |
```
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
This model was trained using the diffusers dreambooth training example script using prior-preservation loss and finetuning the text encoder on roughly 120 images in 8.000 steps.
|
|
|
|
| 41 |
image.save(f"img.png")
|
| 42 |
|
| 43 |
```
|
| 44 |
+
You can try it out on the [Colab example](https://colab.research.google.com/drive/1wlvbTnVxm3bfFwW793cEEVeOYtB0mRG3?usp=sharing), which should work on the free GPU tier.
|
| 45 |
|
| 46 |
|
| 47 |
This model was trained using the diffusers dreambooth training example script using prior-preservation loss and finetuning the text encoder on roughly 120 images in 8.000 steps.
|