Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
Instructions to use CompVis/stable-diffusion-v1-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CompVis/stable-diffusion-v1-4 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-4", dtype=torch.bfloat16, device_map="cuda") prompt = "A high tech solarpunk utopia in the Amazon rainforest" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit History
-
Fix deprecated float16/fp16 variant loading through new `version` API.
Hey CompVis 👋, Your model repository seems to contain a [`fp16` branch](https://huggingface.co/CompVis/stable-diffusion-v1-4/tree/fp16) to load the model in float16 precision. Loading `fp16` versions from a branch instead of the main branch is deprecated and will eventually be forbidden. Instead, we strongly recommend to save `fp16` versions of the model under `.fp16.` version files directly on the 'main' branch as enabled through this PR.This PR makes sure that your model repository allows the user to correctly download float16 precision model weights by adding `fp16` model weights in both safetensors and PyTorch bin format: ```py pipe = DiffusionPipeline.from_pretrained(CompVis/stable-diffusion-v1-4, torch_dtype=torch.float16, variant='fp16') ``` For more information please have a look at: https://huggingface.co/docs/diffusers/using-diffusers/loading#checkpoint-variants. We made sure you that you can safely merge this pull request. Best, the 🧨 Diffusers team.963817b
-
Fix deprecation warning by changing `CLIPFeatureExtractor` to `CLIPImageProcessor`. (#209)
- Fix deprecation warning by changing `CLIPFeatureExtractor` to `CLIPImageProcessor`. (d6ad8543cbdc790baad4470807b24a5bbb818b49)59ec6bd
-
Upload safetensors weights
249dd2d -
Adding `safetensors` variant of this model (#194)
- Adding `safetensors` variant of this model (1132be95a14f43ae41e17275961a0c163e57b2e2)07c396e -
correct vae config
7bc2e3c
-
Update README.md
3857c45
-
Do not assume 8 devices in JAX (#154)
- Do not assume 8 devices in JAX (e124bbdca2dab1af0cdce19d575f8043eab9341e) Co-authored-by: Pedro Cuenca <pcuenq@users.noreply.huggingface.co>bd73f2a
-
Update gate text
f10ab74
-
Make sure the scheduler compatible with DDIM
c47dae7
-
Update scheduler/scheduler_config.json
ccf0734
-
Update README.md
f15bc76
-
Update scheduler/scheduler_config.json
52b46db
-
Update license metadata to link to actual `creativeml-openrail-m` license (#61)
- Update license metadata to link to actual `creativeml-openrail-m` license (7f210fac9bbc55dcc6d63798d4ea25e5dc8289b6)7c3034b
-
Pipeline output: use `images` (#55)
- Pipeline output: use `images` (ab26b4fb44b87a76ee1f3a7723720a54719a04b4) Co-authored-by: Pedro Cuenca <pcuenq@users.noreply.huggingface.co>1d79ac2
-
Update README.md
e175af9
-
Update README.md
48a1bd8
-
Add safety module functionality to readme (#30)
- Add safety module functionality to readme (861782572d9b8f5e157edee4e3c94dd94ea687d2) Co-authored-by: Nathan Lambert <natolambert@users.noreply.huggingface.co>e9bde7f
-
Update README.md
fdd2974 -
Updating gated access wording to be more serious about license. (#12)
- Updating gated access wording to be more serious about license. (79683f10b9baf65a47e2ecc82cf474358f3275a1) Co-authored-by: Margaret Mitchell <meg@users.noreply.huggingface.co>9b8670f
-
Update README.md
a1cda71 -
Improve usage example (#11)
- Improve usage example (034ae2ed1832d2af18a5b901ef5955a983b45e13)11a3326 -
Update README.md
21b2071 -
Update README.md
48d3f1b -
Update README.md
ffa6ee9
-
Update README.md (#3)
- Update README.md (c1a1d6ed90fa47bc1291d32334cd945dcfed9760) Co-authored-by: Philip Kirkpatrick <SPK-951@users.noreply.huggingface.co>2881c08 -
Update README.md
26c6da0 -
Update README.md
0b2e68a -
Update README.md
2b64332 -
Update README.md
36ae9ff -
Update README.md
f99eae7 -
Update README.md
cf7033c -
Update README.md
f10ed29 -
Update README.md
e5cfb9a -
Update README.md
9852c31 -
Update README.md
cc66b03 -
Update README.md
acd94cc -
Upload v1-variants-scores.jpg
d8bb5ae -
Update README.md
96fe19f -
Update README.md
72b584c -
Update README.md
412dbda -
Create README.md
9c24957
-
add weights
4d5006d -
initial commit
5dcbb0d