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
-
Add `clip_sample=False` to scheduler to make model compatible with DDIM.
Hey nitrosocke 👋, Your model repository seems to contain a stable diffusion checkpoint. We have noticed that your scheduler config currently does not correctly work with the [DDIMScheduler](https://huggingface.co/docs/diffusers/main/en/api/schedulers#diffusers.DDIMScheduler) because `clip_sample` is not set to False and will therefore [incorrectly default to True](https://github.com/huggingface/diffusers/blob/3ce6380d3a2ec5c3e3f4f48889d380d657b151bc/src/diffusers/schedulers/scheduling_ddim.py#L127). The official stable diffusion checkpoints have `clip_sample=False` so that the scheduler config works will **all** schedulers, see: https://huggingface.co/stabilityai/stable-diffusion-2-1-base/blob/main/scheduler/scheduler_config.json#L7. We strongly recommend that you merge this PR to make sure your model works correctly with DDIM. Diffusingly, Patrick.f39ca10
-
Correct `sample_size` of Stable Diffusion 1's unet to have correct width and height default (#18)
- Correct `sample_size` of Stable Diffusion 1's unet to have correct width and height default (6405510a0a305805a013605cd282ce81872f6006) Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>e566d16
-
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