当前位置:   article > 正文

LoRA训练环境Kohya-ss的排障记录_module 'diffusers.models.attention' has no attribu

module 'diffusers.models.attention' has no attribute 'crossattention

点击训练按钮开始训练后出现一些错误:
1)
_winapi.CreateProcess
FileNotFoundError: [WinError 2] 系统找不到指定的文件

解决:
Subprocess.py
def __init__(self, args, bufsize=-1, executable=None,
                 stdin=None, stdout=None, stderr=None,
                 preexec_fn=None, close_fds=True,
                 shell=False,
shell=False改为shell=True

参考:https://blog.csdn.net/qq_24118527/article/details/90579328

2)
AttributeError: module 'diffusers.models.attention' has no attribute 'CrossAttention'

解决:原来安装的diffusers是0.15版本,需要回退到0.14版本

python -m pip install diffusers==0.14.0

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号