SD安装失败的总结

832 词

SD安装失败的总结

sd 安装过程

1.下载webui
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

2.安装包下载太慢,可以指定清华源 -i http://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --timeout=3000

2.安装问题
1.Cannot locate TCMalloc (improves CPU memory usage)
yum install gperftools gperftools-devel

2.一直卡着clip安装
修改stable-diffusion-webui/modules目录下的launch_utils.py文件,在https://github.com前面加上https😕/ghproxy.com/,不然国内服务器很容易下载失败

例如:https://ghproxy.com/https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip

3.git Unknown option: -C
因为git版本比较低,需要大于1.8.5

  1. Max retries exceeded with url: /openai/clip-vit-large-patch14/resolve/main/vocab.json (Caused by ConnectTimeoutError
    下载clip-vit-large-patch14 文件到本地 g
    解压后到stable diffusion 根目录 openai/clip-vit-large-patch14/**

5.配置端口和host
./webui.sh --xformers --listen --port 7860
–listen 将监听 0.0.0.0,保证别的机器可以访问本机