Instructions to use nitrosocke/mo-di-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nitrosocke/mo-di-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("nitrosocke/mo-di-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
Commit History
-
Correct `sample_size` of Stable Diffusion 1's unet to have correct width and height default
Since `diffusers==0.9.0` the width and height is automatically inferred from the `sample_size` attribute of your unet's config. It seems like your diffusion model has the same architecture as Stable Diffusion 1 which means that when using this model, by default an image size of 512x512 should be generated. This in turn means the unet's sample size should be **64**. In order to suppress to update your configuration on the fly and to suppress the deprecation warning added in this PR: https://github.com/huggingface/diffusers/pull/1406/files#r1035703505 it is strongly recommended to merge this PR.6405510
-
Update README.md
762f303
-
add tags for discoverability (#7)
- add tags for discoverability (a4acc275fe7c3281ee0fb3c9b185e09c253f16ff) Co-authored-by: 🤗 <clem@users.noreply.huggingface.co>ca551f2 -
add gradio and colab links (#6)
- add gradio and colab links (274a31813fb5a10a57e42cec72f2a42a3d0fd802) Co-authored-by: Ahsen Khaliq <akhaliq@users.noreply.huggingface.co>fd6ecac -
Update README.md
41b065c
-
Update README.md
e8a2a13 -
Delete modernDisney-v1-pruned.ckpt
2bc0f57 -
Upload moDi-v1-pruned.ckpt
ba8c6ed -
Update README.md
6f8c1ce -
Delete modern-disfusion-samples-03s.jpg
a3693bc -
Delete modern-disfusion-samples-02s.jpg
8de9525 -
Delete modern-disfusion-samples-01s.jpg
6a19ccd -
Upload 3 files
246c291 -
Add diffusers code example (#4)
- Add diffusers code example (57118d173659ae229beb09c749e79c5316335b6c) Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>03b34e3 -
Renamed the model and updated the readme
74001fb -
Add Diffusers model (#2)
- Add Diffusers model (f7dcf4749f2225291f1631b291fbb39a68cf910f)e721b74
-
updated the readme with prompts and settings
28d44b5 -
Update README.md
a1d8b25 -
Upload 3 files
6920841 -
Upload modernDisney-v1-pruned.ckpt
08c90a9 -
initial commit
860871b