当前位置:AIGC资讯 > AIGC > 正文

stable-diffusion-webui 安装

一、安装

https://blog.csdn.net/weixin_72056722/article/details/126651703

卸载cpu版本的torch并离线安装对应的gpu版本

1、安装gpu ,速度从一小时加速到3分钟
torch 下载 https://download.pytorch.org/whl/torch_stable.html

E:\AI\stable-diffusion-webui\venv\Scripts>pip3.10.exe install https://download.pytorch.org/whl/cu118/torch-2.0.0%2Bcu118-cp310-cp310-win_amd64.whl

二、问题

1、 No matching distribution found for clip
国内没有,网路

2、WARNING: Ignoring invalid distribution -ip

找到提示目录下前缀为“~”的文件夹,删除掉。

3、No matching distribution found for open_clip

4、RuntimeError: Couldn't clone Taming Transformers.

RuntimeError: Couldn't clone Taming Transformers.
Command: "git" clone "https://github.com/CompVis/taming-transformers.git" "E:\AI\stable-diffusion-webui-master\repositories\taming-transformers"
Error code: 128
stderr: Cloning into 'E:\AI\stable-diffusion-webui-master\repositories\taming-transformers'...
fatal: unable to access 'https://github.com/CompVis/taming-transformers.git/': Recv failure: Connection was reset

国内没有,网路

5、python setup.py egg_info did not run successfully.
升级pip包:
pip install --upgrade pip
pip install --upgrade setuptools
pip install ez_setup
https://zhuanlan.zhihu.com/p/581112365

6、RuntimeError: Couldn’t clone Taming Transformers.

Command: "git" clone "https://github.com/CompVis/taming-transformers.git" "E:\AI\stable-diffusion-webui\repositories\taming-transformers"
Error code: 128
stderr: Cloning into 'E:\AI\stable-diffusion-webui\repositories\taming-transformers'...
fatal: unable to access 'https://github.com/CompVis/taming-transformers.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

解决:git config --global http.sslBackend "openssl"
·

7、ERROR: Could not find a version that satisfies the requirement tb-nightly (from gfpgan) (from versions: none)

pip3.10.exe install torch==2.0.0 torch-directml

8、Not a git repository (or any of the parent directories): .git

E:\AI\stable-diffusion-webui>git init
Initialized empty Git repository in E:/AI/stable-diffusion-webui/.git/

E:\AI\stable-diffusion-webui>git remote add origin https://github.com/AUTOMATIC1111/stable-diffusion-webui
E:\AI\stable-diffusion-webui>

9、ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'E:\\AI\\stable-diffusion-webui\\venv\\Lib\\site-packages\\~-rch\\lib\\asmjit.dll' Check the permissions.

以管理员权限运行cmd

10、Couldn’t find Lora with name koreanDollLikeness_v15

三、绘制技巧

https://ki6j1b0d92h.feishu.cn/wiki/wikcnA89UF8N78ZlgKudMq0hhyb
服饰技巧:https://zhuanlan.zhihu.com/p/625288689
controlnet: https://www.uisdc.com/controlnet

更新时间 2023-12-09