# stable diffusion and controlnet installation
## Installing Stable Diffusion Web UI
* install homebrew
* install python
* install git
* install this package by running this command in terminal:
```
brew install cmake protobuf rust git wget python@3.10
```
* clone these two github repos into your development folder
* control net repo: https://github.com/Mikubill/sd-webui-controlnet.git
* stable diffusion webui repo: https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
* change directorties into your ```stable-diffusion-webui``` directory
* run the ```./webui.sh``` shell command in terminal
* head to http://localhost:7860/
* you should see the Stable Diffusion web UI

## adding the ControlNet extension to Stable Diffusion Web UI
* In the Stable Diffusion Web UI, head to the "Extensions" tab
* select the Available tab
* In the search bar, search for controlnet
* click the "Load from:" orange button

* find "sd-webui-controlnet manipulations"
* it is likely toward the bottom of the list
* try doing a ⌘command + F search and putting in exactly "sd-webui-controlnet" and looking for "manipulations"
* click the grey Install button to the right
* Head to the Extensions
* Click on the Installed tab
* select the sd-webui-controlnet manipulations package
* Click "Check for updates"
* Click Apply and Restart UI
* you should see Control Net added to the Stable Diffusion UI homepage!

## If you need to update stable-diffusion
* Open stable-diffusion-webui in visual studio code
* Open webui-user.bat
* Add git pull to the file
* Save the file (⌘command + s)
