STABLE DIFFUSION AUTOMATIC1111 MAC INSTALL
Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.
Homebrew installs packages to their own directory and then symlinks their files into /opt/homebrew
(on Apple Silicon).
Install Homebrew
Open Terminal and paste this command: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
When that is complete, run: brew install cmake protobuf rust python@3.10 git wget
- Clone the web UI repository by running
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
- Place Stable Diffusion models/checkpoints you want to use into
stable-diffusion-webui/models/Stable-diffusion
. If you don’t have any, see Downloading Stable Diffusion Models below. cd stable-diffusion-webui
and then./webui.sh
to run the web UI. A Python virtual environment will be created and activated using venv and any remaining missing dependencies will be automatically downloaded and installed.- To relaunch the web UI process later, run
./webui.sh
again. Note that it doesn’t auto update the web UI; to update, rungit pull
before running./webui.sh
.
Downloading Stable Diffusion Models
If you don’t have any models to use, Stable Diffusion models can be downloaded from Hugging Face. To download, click on a model and then click on the Files and versions
header. Look for files listed with the “.ckpt” or “.safetensors” extensions, and then click the down arrow to the right of the file size to download them.
Some popular official Stable Diffusion models are:
- Stable DIffusion 1.4 (sd-v1-4.ckpt)
- Stable Diffusion 1.5 (v1-5-pruned-emaonly.ckpt)
- Stable Diffusion 1.5 Inpainting (sd-v1-5-inpainting.ckpt)
Stable Diffusion 2.0 and 2.1 require both a model and a configuration file, and image width & height will need to be set to 768 or higher when generating images:
For the configuration file, hold down the option key on the keyboard and click here to download v2-inference-v.yaml
(it may download as v2-inference-v.yaml.yml
). In Finder select that file then go to the menu and select File
> Get Info
. In the window that appears select the filename and change it to the filename of the model, except with the file extension .yaml
instead of .ckpt
, press return on the keyboard (confirm changing the file extension if prompted), and place it in the same folder as the model (e.g. if you downloaded the 768-v-ema.ckpt
model, rename it to 768-v-ema.yaml
and put it in stable-diffusion-webui/models/Stable-diffusion
along with the model).
Also available is a Stable Diffusion 2.0 depth model (512-depth-ema.ckpt). Download the v2-midas-inference.yaml
configuration file by holding down option on the keyboard and clicking here, then rename it with the .yaml
extension in the same way as mentioned above and put it in stable-diffusion-webui/models/Stable-diffusion
along with the model. Note that this model works at image dimensions of 512 width/height or higher instead of 768.
Github: https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/5461