RuntimeError: output with shape [1, 28, 28] doesn‘t match the broadcast shape [3, 28, 28]

**

RuntimeError: output with shape [1, 28, 28] doesn’t match the broadcast shape [3, 28, 28]

**

RuntimeError: output with shape [1, 208, 256] doesn’t match the broadcast shape [3, 208, 256]

pytorch下跑裂缝类代码运行时遇见shape不匹配问题。

原因:图片格式是灰度图只有一个channel,需要变成RGB图才可以

原文链接:https://blog.youkuaiyun.com/weixin_43159148/article/details/88778371

上一篇: 端到端是什么
下一篇: 空洞卷积的优缺点
chen_Huiling
博客等级 码龄7年 143粉丝 5原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值