**
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
博客指出在Pytorch下运行裂缝类代码时,出现RuntimeError,提示输出shape与广播shape不匹配。原因是图片格式为灰度图,只有一个channel,需转换为RGB图。还给出了相关原文链接。
2045

被折叠的 条评论
为什么被折叠?



