stable diffusion error code:128 stdout:HEAD解决方案

stable diffusion error code:128 stdout:HEAD解决方案

    正在检查是否收录...

错误

Python 3.10.10 (main, Mar 21 2023, 18:45:11) [GCC 11.2.0]
Commit hash:
Traceback (most recent call last):
File “/home/xxxxx/PycharmProjects/stable-diffusion-webui/launch.py”, line 355, in
prepare_environment()
File “/home/xxxx/PycharmProjects/stable-diffusion-webui/launch.py”, line 288, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
File “/home/xxxxx/PycharmProjects/stable-diffusion-webui/launch.py”, line 143, in git_clone
current_hash = run(f’“{git}” -C “{dir}” rev-parse HEAD’, None, f"Couldn’t determine {name}'s hash: {commithash}").strip()
File “/home/xxxx/PycharmProjects/stable-diffusion-webui/launch.py”, line 97, in run
raise RuntimeError(message)
RuntimeError: Couldn’t determine Stable Diffusion’s hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf.

stderr: fatal: 有歧义的参数 'HEAD':未知的版本或路径不存在于工作区中。 

使用 ‘–’ 来分隔版本和路径,例如:
‘git <命令> [<版本>…] – [<文件>…]’

造成原因

因为使用ubuntu 梯子不能全局 ,导致git下载 stable diffusion 出错,使用zip下载并解压造成。

解决方案

在stable-diffusion-webui/repoitories 文件中打开终端 输入

git clone https://github.com/Stability-AI/stablediffusion.git 

并将下载的文件夹重命名成 stable-diffusion-stability-ai
重新运行python launch.py

diffusiongitwebuiwebpycharmcodestable diffusionclonepython文件夹url重命名parse解决方案stablediffusiongithub工作区
  • 本文作者:李琛
  • 本文链接: https://wapzz.net/post-1507.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.3W+
5
0
1
WAP站长官方

研究显示 ChatGPT 可为科学假说生成虚假数据集,对学术诚信造成威胁

上一篇

Google DeepMind 新 AI 算法 Student of Games 能在多种棋盘游戏取得胜利

下一篇
  • 复制图片
按住ctrl可打开默认菜单