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
- Draw Things
- DiffusionBee
Select and Load Model Error
#202
by avigra - opened
Hi,
When I'm trying to run "Load Model Error" for the first time it shows an error for this line:
ckpt_config_path = custom_config_path if model_config == "custom" else os.path.join(models_path, model_config)
NameError Traceback (most recent call last)
in
66
67 # config path
---> 68 ckpt_config_path = custom_config_path if model_config == "custom" else os.path.join(models_path, model_config)
69 if os.path.exists(ckpt_config_path):
70 print(f"{ckpt_config_path} exists")
NameError: name 'models_path' is not defined.
Any ideas how can I solve it?