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
- Draw Things
- DiffusionBee
Can anyone explain my Error message loading stable diffussion
Hi, I'm a non technical user - but learning a lot trying to run stable diffusion on an AMD GPU. I am nearly there but now have an error message that I can't understand. Any help really appreciated. Thanks. The error message is:
file location deleted, then
\Stable on AMD 14 July 2023\WEB UI\stable-diffusion-webui-directml\venv\lib\site-packages\safetensors\torch.py", line 259, in load_file
with safe_open(filename, framework="pt", device=device) as f:
safetensors_rust.SafetensorError: device privateuseone:0 is invalid
Stable diffusion model failed to load
Applying attention optimization: sub-quadratic... done.
preload_extensions_git_metadata for 7 extensions took 0.00s
Running on local URL: XXXX
To create a public link, set share=True in launch().
Startup time: 128.2s (import torch: 16.8s, import gradio: 30.0s, import ldm: 0.9s, other imports: 78.3s, setup codeformer: 0.1s, load scripts: 1.4s, create ui: 0.6s, gradio launch: 0.2s).