-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Installation on Apple Silicon
IMPORTANT While the web UI runs fine, there are still certain issues when running this fork on Apple Silicon.
The only 2 samplers that work (at the time of writing this) are Euler
and DPM2
- all others result in a black screen.
Upscaling works, but only using the real-ESRGAN models.
First get the weights checkpoint download started - it's big:
Sign up at https://huggingface.co Go to the Stable diffusion diffusion model page Accept the terms and click Access Repository: Download sd-v1-4.ckpt (4.27 GB) and note where you have saved it (probably the Downloads folder)
brew install cmake protobuf rust
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o Miniconda3-latest-MacOSX-arm64.sh
/bin/bash Miniconda3-latest-MacOSX-arm64.sh
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
- Run the following commands one by one:
git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion
git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers
git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer
git clone https://github.com/salesforce/BLIP.git repositories/BLIP
conda create --name web_ui python=3.10
conda activate web_ui
pip install -r requirements.txt
conda install pytorch torchvision torchaudio -c pytorch-nightly
- At this point, move the downloaded
sd-v1-4.ckpt
file intostable-diffusion-webui/models/
. You will know it's the right folder since there's a text file namedPut Stable Diffusion checkpoints here.txt
in it. conda env config vars set PYTORCH_ENABLE_MPS_FALLBACK=1
python webui.py --precision full --no-half --opt-split-attention-v1
It is possible that after running webui.py
you get error messages saying certain packages are missing. Install the missing package, go back to step 13 and repeat.
ImportError: dlopen(.venv/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (__ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_)
Downgrade Protobuf using pip install protobuf==3.19.4
This is the Stable Diffusion web UI wiki. Wiki Home
Setup
- Install and run on NVidia GPUs
- Install and run on AMD GPUs
- Install and run on Apple Silicon
- Install and run on Intel Silicon (external wiki page)
- Install and run via container (i.e. Docker)
- Run via online services
Reproducing images / troubleshooting
Usage
- Features
- Command Line Arguments and Settings
- Optimizations
- Custom Filename Name and Subdirectory
- Change model folder location e.g. external disk
- User Interface Customizations
- Guides and Tutorials
Developers