当前位置:   article > 正文

win10+AMD显卡在安装Stable-diffusion-webui-directml报错RuntimeError: Couldn‘t checkout commit xxx for yyy._runtimeerror: couldn't checkout commit for stable

runtimeerror: couldn't checkout commit for stable diffusion

xxx是哈希值,yyy是某个依赖包(如stable-diffusion-stability-ai、k-diffusion)。

这里的情况是运行webui-user.bat时,报错信息如:

Checking out commit for yyy with hash ......

......

...... \modules\launch_utils.py, line 595

......

RuntimeError: Couldn't checkout commit xxx for yyy.

到该行查看,可以发现prepare_environment函数在检查哈希值,对于repositories路径下的stable-diffusion-stability-ai、k-diffusion在安装时如果没有git clone,而是解压zip会缺少.git文件夹,因此检查失败。

解决:一开始安装依赖的时候就用git clone,或者解压zip后补上.git。

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

闽ICP备14008679号