当前位置:   article > 正文

AI绘画(sd webui)报错mat1 and mat2 shapes cannot be multiplied的处理_runtimeerror: mat1 and mat2 shapes cannot be multi

runtimeerror: mat1 and mat2 shapes cannot be multiplied (154x2048 and 768x32

问题描述

在用webui转换游戏图标的风格时,使用controlnet固定图标样式,运行报错:RuntimeError: mat1 and mat2 shapes cannot be multiplied (154x1024 and 768x320),报错说的是pytorch在进行矩阵乘法运算时,第一个矩阵的行数与第二矩阵的列数不相等,无法作乘法。

解决方法

一头雾水,查了github,google,百度都未找到解决方法,为了后续人少踩坑,把写问题记一下。当更换当前大模型后,再用同样的参数画图,然后就没报错了。
所以,解决方法是:更换大模型!
声明:不一定对,仅供参考,不喜勿喷。


在这里插入图片描述

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

闽ICP备14008679号