在安装stablediffusion时间出现了以下错误查找了不少办理了题目,请看报的错:
- Version: 1.10.1
- Commit hash: <none>
- 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 <module>
- 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):
1、在项目的modules文件夹下面有个launch_utils文件,在文件内里的https://github.com前面加上https://ghproxy.com,我数了下,一个是15处,假如你对代码比力属性的话,也会发现实在有几处是被解释了的,可以不添加的,假如你不放心可以不添加,对了,可以备份一个这个原文件,然后放修改过了的文件。
2、我看了下载的东西在项目文件的repositories目录下(最开始的文件是没有这个文件夹的),那么假如内里有东西的话,老规矩,备份一下,然后将内里的东西删除干净再重新下载。
3、cmd运行如下命令
git config --global http.sslVerify “false”
用完命令记得规复ssl验证:
git config --global http.sslVerify true
4、关掉了clash(vpn)的随机占用端口,连结了VPN,断开试试
5、利用环境变量:
set HTTP_PROXY=http://localhost:7890
set HTTPS_PROXY=%HTTP_PROXY%
6、检查网络连接。确保您的网络连接稳定,并且可以正常访问GitHub。大概需要重启路由器大概稍后再试。
更换网络环境。假如大概,实验利用另一个网络环境举行安装,例如切换到其他Wi-Fi网络或利用手机热门。
利用代理。假如您所在的地区对GitHub的访问有限定,可以考虑利用代理服务器或VPN举行访问。
实验下载GFPGAN的源代码并本地安装。您可以手动下载GFPGAN的源代码(地点:https://github.com/TencentARC/GFPGAN),然后利用pip install .命令在本地举行安装。
7、Find your git installation path first, locate the bin folder, and copy the path in the bin folder
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内里,记得是新建)
8、Had same issue. Solved by git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
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.
9、这个是我发现的,假如用宽带的话,不要插到路由器上,直接插入运营商提供的端口上,然后在晚上凌晨下载就会成功,很玄学。
ok,基本上我找到的办理办法就是这些,希望能帮助到各位,假如有更好的方法可以添加在评论区。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |