问题描述
出现包括且不限于
fatal: unable to access 'https://github.com/Stability-AI/stablediffusion.git/': OpenSSL SSL_read: Connection was reset, errno 10054
解决思路
肯定是bat文件指向的某个文件中使用git下载该仓库,所以到文件中修改这里,从gitee等路径手动下载然后替换即可
修改位置
使用python搜索了下所有bat和py文件的关键字可知:
Stability-AI/stablediffusion有一处:
find line
stable_diffusion_repo = os.environ.get(‘STABLE_DIFFUSION_REPO’, “https://github.com/Stability-AI/stablediffusion.git”)
in file D:\Tools\gitBash\stable-diffusion-webui-master\modules\launch_utils.py
=================================================================
具体修改
关闭下载
这五句话注释掉
# git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
# git_clone(taming_transformers_repo, repo_dir('taming-transformers'), "Taming Transformers", taming_transformers_commit_hash)
# git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash)
# git_clone(codeformer_repo, repo_dir('CodeFormer'), "CodeFormer", codeformer_commit_hash)
# git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash)
找个地方下载
我找的是gitee,把上面的路径复制进去就有,下载到本地
替换到本地
从launch_utils.py文件看,是本地repositories目录下