- 克隆仓库
git clone https://ghproxy.com//https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
git clone git@github.com:AUTOMATIC1111/stable-diffusion-webui.git
-
创建虚拟环境,python版本建议按照官网推荐的,当前为3.10.6(这一步可以在vscode里操作)
-
安装依赖
pip install -r requirements.txt
- 运行
webui-user.bat
# 需要在文件set COMMANDLINE_ARGS=这一行添加--skip-torch-cuda-test
#
# 或者也可以运行
webui --skip-torch-cuda-test
官方教程里是没有2和3的,但我感觉这样做成功率会高一点,另外万一装失败了,不会影响现有的环境