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
Adding `safetensors` variant of this model
#239
by LIqipei - opened
Files changed (5)
123version https://git-lfs.github.com/spec/v1oid sha256:9d6a233ff6fd5ccb9f76fd99618d73369c52dd3d8222376384d0e601911089e8size 1215981830123version https://git-lfs.github.com/spec/v1oid sha256:11cfe53105625af8c00faac32a430626641cce686454f3c39d837f14397d858bsize 1215981832
123version https://git-lfs.github.com/spec/v1oid sha256:08902f19b1cfebd7c989f152fc0507bef6898c706a91d666509383122324b511size 608018440123version https://git-lfs.github.com/spec/v1oid sha256:7b3a12df205cb3c74dd4eae4354d93f606ae6b3bc29d5d06fd97921cb9ad8a81size 492265879123version https://git-lfs.github.com/spec/v1oid sha256:71c10601ece1342fede0300fb88db71c09ece8be491b71875d18b9799a5e6c15size 492265880
123version https://git-lfs.github.com/spec/v1oid sha256:77795e2023adcf39bc29a884661950380bd093cf0750a966d473d1718dc9ef4esize 246144864123version https://git-lfs.github.com/spec/v1oid sha256:145a07e0f05ec5bbe6e2e9faf608bdb311caf708895cac8c8ed713c59864e1e8size 3438167534123version https://git-lfs.github.com/spec/v1oid sha256:d54d1800033f872c2ede03a45de06d176a53146e43bc9bdb81b0429560a07dc9size 3438167536
safety_checker/model.safetensors+2-2
safety_checker/pytorch_model.fp16.safetensorsAdded+3
text_encoder/model.safetensors+2-2
text_encoder/pytorch_model.fp16.safetensorsAdded+3
unet/diffusion_pytorch_model.safetensors+2-2