问题描述

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

解决方法

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


AI绘画(sd webui)报错mat1 and mat2 shapes cannot be multiplied的处理相关推荐

  1. RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x7 and 784x1024) 报错解决

    RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x7 and 784x1024) 运行pytorch时,出现以下报错: 错误代码: ...

  2. pytorch报错:RuntimeError: mat1 and mat2 shapes cannot be multiplied (64x2500 and 3020x1600)

    相信同学们在刚接触深度学习的时候老会遇到类似的问题: 这个其实就是卷积层到全连接层之间的参数数量不对应的问题 卷积层的的输出结果是64*2500的矩阵,那么全连接层的第一个第一层的就应该是:2500* ...

  3. RuntimeError: mat1 and mat2 shapes cannot be multiplied (1024x1 and 1024x3)

    RuntimeError: mat1 and mat2 shapes cannot be multiplied (1024x1 and 1024x3) 前言:在学习pytorch 搭建神经网络的时候, ...

  4. RuntimeError: mat1 and mat2 shapes cannot be multiplied (3584x7 and 25088x4096)

    RuntimeError: mat1 and mat2 shapes cannot be multiplied (3584x7 and 25088x4096) 使用VGG19提取图像特征时出现该问题 ...

  5. Pytorch vgg16 实现CIFAR10数据集分类 以及RuntimeError: mat1 and mat2 shapes cannot be multiplied终极详解

    最近从tensorflow转战pytorch,今天又遇到了了一个大坑:RuntimeError: mat1 and mat2 shapes cannot be multiplied,网上的结果大都模模 ...

  6. RuntimeError: mat1 and mat2 shapes cannot be multiplied

    RuntimeError: mat1 and mat2 shapes cannot be multiplied RuntimeError: mat1 and mat2 shapes cannot be ...

  7. 解决:RuntimeError: mat1 and mat2 shapes cannot be multiplied (8x256 and 8x256)维度不匹配问题

    在设计网络是,前面几层是去噪网络,后边几层是分类网络,因为之前没有接触过分类任务,对全连接层输入维度不太理解,出现错误RuntimeError: mat1 and mat2 shapes cannot ...

  8. RuntimeError mat1 and mat2 shapes cannot be multiplied

    详细显示如下 x = self.fc(x) File "D:\Python36\lib\site-packages\torch\nn\modules\module.py", lin ...

  9. 训练好的vgg报错RuntimeError:mat1 and mat2 shapes cannot be multiplied(512*49 and 25088*4096)

    问题背景 将训练好的图片分类vgg模型用到新的数据集上进行图片分类的时候出现了以下问题: 解决方法 结合VGG的网络架构: 发现池化层的输出张量为51277,对应报错的512*49,其无法与第一个全连 ...

最新文章

  1. JVM调优之实战案例(六)(转载)
  2. MSN8.0?!O My God,it's so perfect!
  3. 一致性hash算法_(图文案例)一致性哈希算法详解 一点课堂(多岸教育)
  4. 用行为树的方式思考问题
  5. python树莓派串口通信实例_树莓派通过串口发送数据
  6. 实现公告板和本周热卖功能
  7. CactiEZ中文版说明
  8. Paxos算法原理与推导
  9. Linux Debian10 如何安装jemalloc 以及 Newer version of jemalloc required 问题
  10. 【Endnote】CNKI E-Study与Endnote 的参考文献题录互导
  11. 计算机经常断开网络,怎么解决电脑经常自动断网掉线的问题
  12. Mysql数据库优化
  13. VUE笔记——B站狂神说
  14. 相片打印机原理_手机照片打印机的原理是什么 便携式照片打印机到底好不好...
  15. cocos2d-x 从win32到android移植的全套解决方案
  16. Windows 下有什么软件能够极大地提高工作效率
  17. 3月15日 | 开启 ICLR 2023预讲会专场二
  18. SpringCloud微服务-----skywalking链路追踪
  19. mysql安装简书_MySQL 安装和配置
  20. 总帐追溯到各模块 R12

热门文章

  1. 荒野日记游戏辅助新手攻略 荒野日记脚本挂机玩法介绍
  2. html中输入 符号,HTML中特殊符号
  3. Time to upgrade my Minecraft to premium https://freeminecraftgiftcode.net :D
  4. 大厂开启抢人大战!平均年薪开到68万,拿下这个证书直接起飞!
  5. 支付宝手势密码安全吗?
  6. 资产管理系统 CMDB 详解
  7. eclpise插件安装问题
  8. Proxifier设置代理
  9. BioVision一氧化氮荧光检测试剂盒重组方案
  10. C++实训 面向对象 - 运算符重载与友元函数