AI drawing ControlNet local implementation steps by stable-diffusion-webui(AI绘画ControlNet本地构建实施步骤 by stable-diffusion-webui)
Install stable-diffusion-webui
[Note]:
- Unable to install due to network problems, it is recommended to use GIT source pull installation
(因网络问题导致无法安装,故建议使用GIT源码拉取安装方式) - Due to the large size of the model file, it is recommended to ensure sufficient space before installation: At least [source code + data model + extension]25G
(因模型文件较大,建议安装前确保有足够空间: 至少[源码+数据模型+扩展]25G) - The PC terminal to be built is 🍎 macOS Ventura 13.4.1(c), and the Windows environment is built in much the same way.
(构建PC终端是🍎 macOS Ventura 13.4.1(c),Windows系统环境构建方式大同小异) - Basic build tools (brew management recommended)
(基础构建工具(推荐brew管理))1
2
3
4
5
6cmake
wget
git
rust
protobuf
python3.x
Project key directory(项目关键目录)
- stable-diffusion-webui/extensions (扩展)
- stable-diffusion-webui/models (模型)
Construction steps(构建步骤)
Install and start service: stable-diffusion-webui (源码安装:stable-diffusion-webui)
1
2
3
4
5
6
7
8
# Pull source code
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && cd stable-diffusion-webui
# start web UI (启动web UI)
./webui.sh
# Running on local URL: http://127.0.0.1:7860Default web UI url: http://127.0.0.1:7860
base model source download (绘图基础模型下载)
- AI drawing basic model download
1
2
3
4
5
6
7# models directory
cd stable-diffusion-webui/models/Stable-diffusion
wget https://huggingface.co/stabilityai/stable-diffusion-2/resolve/main/768-v-ema.ckpt
# back stable-diffusion-webui & restart webui.sh
./webui.sh
Basic extensions install (基础插件安装)
- Install controlnet extension (安装ContolNet扩展)
1
2
3
4
5
6
7
8# cd extensions path
cd stable-diffusion-webui/extensions
# Pull extension source code
git clone https://github.com/Mikubill/sd-webui-controlnet.git
# back to browser web UI click button:apply and restart
Project key directory(项目关键目录)
stable-diffusion-webui/extensions (扩展)
stable-diffusion-webui/models (模型)
Install openpose-editor extension (Custom pose) (安装openpose扩展)
1
2
3
4
5
6
7
# cd extensions path
cd stable-diffusion-webui/extensions
# Pull extension source code
git clone https://github.com/fkunn1326/openpose-editor.git
# back to browser web UI click button:apply and restart
Extensions include directory structure (扩展包含目录结构)
1 | extensions |
Basic Extensions have been installed.
- back home page and open ControlNet tab.
Controlnet associated base model download (controlnet相关联的基础模型下载)
A list of optional models is suggested
1 | # cd models ControlNet path |
Models include directory structure (模型包含目录结构)
1 | models |
Installation complete
Notice:Note that some source code, model and extension download network is slow, it is recommended to use professional download tools to download
(注意事项,部分源码、模型和扩展下载网络缓慢,建议采用专业下载工具下载)
AI drawing ControlNet local implementation steps by stable-diffusion-webui(AI绘画ControlNet本地构建实施步骤 by stable-diffusion-webui)