处理stable-diffusion-webui本地部署过程中的commit hash <none>问题的一

[复制链接]
查看449 | 回复0 | 2023-8-9 10:12:58 | 显示全部楼层 |阅读模式
安装webui时一直卡在commit hash none RuntimeError: Couldn't determine Stable Diffusion's hash: 69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc 这一步
报错类似于这个(因为我没有存截图)
  1. Commit hash: <none>
  2. Traceback (most recent call last):
  3.   File "D:\GitHub Desktop Files\stable-diffusion-webui\launch.py", line 130, in <module>
  4.     git_clone("https://github.com/CompVis/stable-diffusion.git", repo_dir('stable-diffusion'), "Stable Diffusion", stable_diffusion_commit_hash)
  5.   File "D:\GitHub Desktop Files\stable-diffusion-webui\launch.py", line 93, in git_clone
  6.     current_hash = run(f'"{git}" -C {dir} rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip()
  7.   File "D:\GitHub Desktop Files\stable-diffusion-webui\launch.py", line 55, in run
  8.     raise RuntimeError(message)
  9. RuntimeError: Couldn't determine Stable Diffusion's hash: 69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc.
  10. Command: "git" -C repositories\stable-diffusion rev-parse HEAD
  11. Error code: 1
  12. stdout: 69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc
复制代码
       为说明该问题而从相似问题的评论截的图    我尝试了很多安装方法,但没有解决

直到我打开cmd尝试输入RuntimeError下一行的command


按照command输入了几次之后,可以正常使用

所以,我的一个解决方法是
        根据报错内容下方command提示,依次在命令行如下输入(文件路径为自己相应文件的)
  1. C:\Users\86152>git config --global --add safe.directory E:/E-software/AIPaint/WebUi/repositories/stable-diffusion
  2. C:\Users\86152>git config --global --add safe.directory E:/E-software/AIPaint/WebUi/repositories/taming-transformers
  3. C:\Users\86152>git config --global --add safe.directory E:/E-software/AIPaint/WebUi/repositories/k-diffusion
  4. C:\Users\86152>git config --global --add safe.directory E:/E-software/AIPaint/WebUi/repositories/CodeFormer
  5. C:\Users\86152>git config --global --add safe.directory E:/E-software/AIPaint/WebUi/repositories/BLIP
复制代码


另外,安装过程中我发现这个包相当好用
【【AI绘画】NovelAI最终版 webui版 无需额外下载安装!汉化✓ 可更新✓ 训练✓ 提供7G模型】(记得给up留个三连)
里面的报错修复修复了我遇到的另外一些问题

来源:https://blog.csdn.net/Xy_G__/article/details/128180356
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则