部署stable-diffusion时遇到RuntimeError: Couldn‘t clone Stable Diffusion XL.问题

错误信息如下:

venv "E:\AI\stable-diffusion-webui-master\venv\Scripts\Python.exe"
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.9.4
Commit hash: <none>
Cloning Stable Diffusion XL into E:\AI\stable-diffusion-webui-master\repositories\generative-models...
Cloning into 'E:\AI\stable-diffusion-webui-master\repositories\generative-models'...
remote: Enumerating objects: 941, done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 585 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 "E:\AI\stable-diffusion-webui-master\launch.py", line 48, in <module>
    main()
  File "E:\AI\stable-diffusion-webui-master\launch.py", line 39, in main
    prepare_environment()
  File "E:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 412, in prepare_environment
    git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL", stable_diffusion_xl_commit_hash)
  File "E:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 191, 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 "E:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone Stable Diffusion XL.
Command: "git" clone --config core.filemode=false "https://github.com/Stability-AI/generative-models.git" "E:\AI\stable-diffusion-webui-master\repositories\generative-models"
Error code: 128

这是由于E:\AI\stable-diffusion-webui-master\repositories/grnerative-models克隆下载出现问题导致的。将该文件夹删除,重新运行webui-user.bat,当网络通畅的时候,会下载成功

venv "E:\AI\stable-diffusion-webui-master\venv\Scripts\Python.exe"
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.9.4
Commit hash: <none>
Cloning Stable Diffusion XL into E:\AI\stable-diffusion-webui-master\repositories\generative-models...
Cloning into 'E:\AI\stable-diffusion-webui-master\repositories\generative-models'...
remote: Enumerating objects: 941, done.
remote: Total 941 (delta 0), reused 0 (delta 0), pack-reused 941
Receiving objects: 100% (941/941), 43.85 MiB | 2.81 MiB/s, done.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值