Instructions to use CompVis/stable-diffusion-v1-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CompVis/stable-diffusion-v1-1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-1", 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 CompVis 👋, 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.4df3bf1
-
Update README.md
8828c1a
-
Update scheduler/scheduler_config.json
6d547cb
-
Update scheduler/scheduler_config.json
bf4d86c
-
Update license metadata to link to actual `creativeml-openrail-m` license (#3)
- Update license metadata to link to actual `creativeml-openrail-m` license (4d46e451078a59716f20bd25a4c777f0c1b4f1c6)ab49ca0
-
Update README.md
e2b3f22 -
Update README.md
d026838
-
Changing gated access wording. Can't preview when I'm not gated, so I hope it's ok. (#1)
- Changing gated access wording. Can't preview when I'm not gated, so I hope it's ok. (b3f649486799e959fbfcd45d2a6e2badd6ad4bdc) Co-authored-by: Margaret Mitchell <meg@users.noreply.huggingface.co>806784a -
Update README.md
3b4d7c7 -
Update README.md
7eaa7d0 -
Update README.md
8640d38
-
Update README.md
b2e8107 -
Update README.md
2d6f1cd -
Update README.md
0ec5e09 -
Update README.md
47cced5 -
Update README.md
86c0e3f -
Update README.md
ec97e12 -
Update README.md
b14b93a -
Update README.md
4ea94bf -
Update README.md
c71cdb2 -
Update README.md
03f4f17 -
Update README.md
6539942 -
Upload v1-variants-scores.jpg
e36e180
-
Update README.md
3b0814a -
Create README.md
85cd29a
-
add weights
fcd1910 -
initial commit
cc27973