在安装stablediffusion时候出现了以下错误查找了不少解决了问题,请看报的错:
Version: 1.10.1
Commit hash:
Cloning Stable Diffusion into D:\AI\stable-diffusion-webui-master\repositories\stable-diffusion-stability-ai...
Cloning into 'D:\AI\stable-diffusion-webui-master\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 7367 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Traceback (most recent call last):
File "D:\AI\stable-diffusion-webui-master\launch.py", line 48, in
main()
File "D:\AI\stable-diffusion-webui-master\launch.py", line 39, in main
prepare_environment()
File "D:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 412, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
File "D:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 192, in git_clone
run(f'"{git}" clone --config core.filemode=false "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
File "D:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone Stable Diffusion.
Command: "git" clone --config core.filemode=false "https://github.com/Stability-AI/stablediffusion.git" "D:\AI\stable-diffusion-webui-master\repositories\stable-diffusion-stability-ai"
Error code: 128
请按任意键继续. . .
首先我们要知道安装这个模型所需的工具和环境(n卡,6G显存以上):
1、cuda环境
2、Python3.10.9
3、git下载工具
这三个最好版本对应,这儿给出一个比较详细的安装文章:https://zhuanlan.zhihu.com/p/625617719
按照他的步骤安装是没问题的,但是就是最后一步出现了问题,也就是开头的报错,原因其实很简单,就是无法连接到Github的服务器,OK,我整理了下各位大佬提出的解决办法,对了我下载的版本是(1.10.1):
git config --global http.sslVerify “false”
用完命令记得恢复ssl验证:
git config --global http.sslVerify true
set HTTP_PROXY=http://localhost:7890
set HTTPS_PROXY=%HTTP_PROXY%
更换网络环境。如果可能,尝试使用另一个网络环境进行安装,例如切换到其他Wi-Fi网络或使用手机热点。
使用代理。如果您所在的地区对GitHub的访问有限制,可以考虑使用代理服务器或VPN进行访问。
尝试下载GFPGAN的源代码并本地安装。您可以手动下载GFPGAN的源代码(地址:https://github.com/TencentARC/GFPGAN),然后使用pip install .命令在本地进行安装。
Open Computer Settings “About”>>“Advanced System Settings”>>“Environment Variables”
Find “path”, click “edit”, create a new path, paste the just GIT path, and click OK
Rerun webui-user.bat(翻译一下,就是找到你安装git的地方,将他的bin文件夹的路径添加到系统环境变量的path里面,记得是新建)
I’m in CN and have been having this problem with code128 for a long time. I just solved it by downloading the integration package and directly copying the “repositories” file inside to the SD.
ok,基本上我找到的解决办法就是这些,希望能帮助到各位,如果有更好的方法可以添加在评论区。