当前位置:   article > 正文

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

runtimeerror: couldn't clone stable diffusion xl.

错误信息如下:

  1. venv "E:\AI\stable-diffusion-webui-master\venv\Scripts\Python.exe"
  2. fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
  3. Use '--' to separate paths from revisions, like this:
  4. 'git <command> [<revision>...] -- [<file>...]'
  5. fatal: No names found, cannot describe anything.
  6. Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
  7. Version: 1.9.4
  8. Commit hash: <none>
  9. Cloning Stable Diffusion XL into E:\AI\stable-diffusion-webui-master\repositories\generative-models...
  10. Cloning into 'E:\AI\stable-diffusion-webui-master\repositories\generative-models'...
  11. remote: Enumerating objects: 941, done.
  12. error: RPC failed; curl 18 transfer closed with outstanding read data remaining
  13. error: 585 bytes of body are still expected
  14. fetch-pack: unexpected disconnect while reading sideband packet
  15. fatal: early EOF
  16. fatal: fetch-pack: invalid index-pack output
  17. Traceback (most recent call last):
  18. File "E:\AI\stable-diffusion-webui-master\launch.py", line 48, in <module>
  19. main()
  20. File "E:\AI\stable-diffusion-webui-master\launch.py", line 39, in main
  21. prepare_environment()
  22. File "E:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 412, in prepare_environment
  23. git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL", stable_diffusion_xl_commit_hash)
  24. File "E:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 191, in git_clone
  25. run(f'"{git}" clone --config core.filemode=false "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
  26. File "E:\AI\stable-diffusion-webui-master\modules\launch_utils.py", line 115, in run
  27. raise RuntimeError("\n".join(error_bits))
  28. RuntimeError: Couldn't clone Stable Diffusion XL.
  29. Command: "git" clone --config core.filemode=false "https://github.com/Stability-AI/generative-models.git" "E:\AI\stable-diffusion-webui-master\repositories\generative-models"
  30. Error code: 128

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/1011644
推荐阅读
相关标签
  

闽ICP备14008679号