安装 stable-diffusion-webui


sudo apt install wget git python3 python3-venv
git clone <https://github.com/AUTOMATIC1111/stable-diffusion-webui.git>
cd stable-diffusion-webui

# 启动 
# 第一次启动会下载模型,会比较慢
python3 launch.py --listen --no-half

Command Line Arguments and Settings

安装sd-webui-controlnet

https://github.com/Mikubill/sd-webui-controlnet

  1. Open "Extensions" tab.
  2. Open "Install from URL" tab in the tab.
  3. Enter https://github.com/Mikubill/sd-webui-controlnet.git to "URL for extension's git repository".
  4. Press "Install" button.
  5. Wait for 5 seconds, and you will see the message "Installed into stable-diffusion-webui\extensions\sd-webui-controlnet. Use Installed tab to restart".
  6. Go to "Installed" tab, click "Check for updates", and then click "Apply and restart UI". (The next time you can also use these buttons to update ControlNet.)
  7. Completely restart A1111 webui including your terminal. (If you do not know what is a "terminal", you can reboot your computer to achieve the same effect.)
  8. Download models (see below).
  9. After you put models in the correct folder, you may need to refresh to see the models. The refresh button is right to your "Model" dropdown.