Stable diffusion on my Mac
Background
I installed stable diffusion on my M1 macbook. To be specific, it is AUTOMATIC1111 based GUI.
Here are the steps:
Install AUTOMATIC1111 on Mac
#1 : Install Homebrew
You need to install a package manager called homebrew for Mac. How?
Open the Terminal and type the following command, and press enter/return.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
#2 : Install a required packages.
In the terminal run the following command:
brew install cmake protobuf rust python@3.10 git wget
#3 : Clone the AUTOMATIC1111 from github repository.
Run the following command in the terminal
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
A new folder stable-diffusion-webui
should be created under your home directory.
#4 : Download model(s) to run Stable Diffusion
You will need a model (or here) to run Stable Diffusion. As a starter I use v1.5 model.
Download link
Please note that it will take up to several GB of space.
Put the file in the folder stable-diffusion-webui/models/Stable-diffusion
.
Run AUTOMATIC1111 on Mac
Run the following command in the terminal.
cd ~/stable-diffusion-webui;./webui.sh
At first run, it might be required to install several dependencies, which are automatically executed.
Open a web browser and visit this URL.
http://127.0.0.1:7860/
You will see AUTOMATIC1111 GUI.
Try to prompt something, and have fun.
It takes time when I first used it to generate 'cat'.
Here is my first cat:
Reference
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon