总结在安装Stable Diffusion Web UI 1.8.0时一些问题处理
-
如果已经安装torch,在requirements.txt剔除torch相关模块
-
open-clip-torch的版本如果安装后是2.20.0,替换成pip install open-clip-torch==2.24.0
pip show open-clip-torch查看详细信息 -
pip install huggingface-hub==0.22.2, 此版本不提示下面的错误
/root/anaconda3/envs/matting/lib/python3.10/site-packages/huggingface_hub/file_download.py:1150:
FutureWarning:resume_download
is deprecated and will be removed
in version 1.0.0. Downloads always resume when possible. If you want
to force a new download, useforce_download=True
. warnings.warn( -
1.8.0可以匹配的controlnet版本
sd-webui-controlnet-1.1.436
如果已经安装了opencv-python和onnxruntime,controlnet里的requirements.txt剔除这两个选项,以免覆盖,特别是onnxruntime-gpu的版本,建议安装cudnn8.6.x以上 -
ubuntu22.04启动sd-webui密令
python launch.py --api --autolaunch --api-auth admin:123456 --gradio-auth admin:123456 -
pip-24.2会导致ninja 1.11.1.1 is not supported on this
platform,降级到24.1.2 -
pydantic升级到2.x后大部分插件无法启动,包括adetailer、controlnet等插件,回退到1.10.17
-
gradio回退到3.41.2,这是1.8.0支持的gradio的最大版本