If you your computer has an Apple silicon chip (M1, M2, etc.), you need to do special things to use stable diffusion. Here, I want to use it via AUTOMATIC1111's web UI. In the wiki in that codebase, there's some tips about how to do this, and someone even did wrote a script to automate this setup. This codebase is my attempt to improve upon this automation.
- Install direnv.
- Because this repository uses git submodules, clone it recusively.
git clone --recurse-submodules https://github.com/johnnymo87/stable-diffusion-webui-apple-silicon.git
- Move into the cloned directory.
cd stable-diffusion-webui-apple-silicon
- Initialize the file for environment variables and then fill it out.
cp .envrc.sample .envrc
- Optionally, skip this step, and the first time setup script will prompt you for the necessary information.
- Run the first time setup script.
./first_time_setup.sh
- Run the every time script.
./run_webui_mac.sh