mac local deployment stable-diffusion

Download Homebrew

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

①Enter "1" to select the USTC version, then enter Y(YES), directly enter 开机密码(不显示) and press Enter to confirm. Start download

②When downloading it for the first time, a pop-up window will ask you to download Git first. We click to agree and then wait for the download.

③After downloading Git, re-run the code and repeat the operation of ①. This time, download the brew ontology.

④You can choose (enterY and press Enter). If you want to save time, you can choose not to select it and just press Enter (not a required module. You can ignore it)

⑤The download is completed. It prompts you to enter "1" for future downloads. It prompts that the installation is complete. Copy the instructions it gives you and run it

Supplement: brew common commands

    • View version:brew -v
    • Update brew version:-brew update
    • Find:brew search xxx (replace xxx with the keyword you want to find)
    • Install:-brew install xxx
    • Input after installationxxx -hView
    • View the list of local software libraries:brew ls

⑥We usebrew -v. Seeing the brew version and installation date indicates success

brew -v

DownloadPython

Then usebrew install to download Python and other dependencies, and create a new terminal to execute the command⬇️

brew install cmake protobuf rust [email protected] git wget

 Download stable-diffusion-webui

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

Under the stable-diffusion path, run the terminal:

./webui.sh

 

Then it's ok

 Just enter anything and you can start drawing.

ps. This thing consumes a lot of graphics card performance, especially video memory. Mac does not have a graphics card, so it uses shared memory as video memory. The minimum memory of Mac starts at 16g. It can be played for fun. If you want to really do this, you should get a PC, preferably RTX4090.

Guess you like

Origin blog.csdn.net/irisMoon06/article/details/134741077