首页 炼丹房 帖子详情
NCHW和CHW有啥区别?
收藏
快速回复
炼丹房 问答新手上路 1490 9
NCHW和CHW有啥区别?
收藏
快速回复
炼丹房 问答新手上路 1490 9

NCHW和CHW有啥区别?

ValueError: (InvalidArgument) The number of input's channels should be equal to filter's channels * groups for Op(Conv). But received: the input's channels is 224, the input's shape is [64, 224, 224, 3]; the filter's channels is 3, the filter's shape is [64, 3, 7, 7]; the groups is 1, the data_format is NCHW. The error may come from wrong data_format setting.
0
收藏
回复
全部评论(9)
时间顺序
AIStudio810258
#2 回复于2021-01

N是batch size

0
回复
AIStudio810258
#3 回复于2021-01

送入model的一般都是NCHW形状的,即使是[1,C,H,W]

1
回复
thinc
#4 回复于2021-01

动态图里跑的是NCHW数据,你自己的图像数据是HWC,CHW的挺少见。。。

0
回复
AIStudio810259
#5 回复于2021-01
thinc #4
动态图里跑的是NCHW数据,你自己的图像数据是HWC,CHW的挺少见。。。

对对对,C跑后面去了。

0
回复
thinc
#6 回复于2021-01
对对对,C跑后面去了。

当时我也给这个搞迷糊过,不过动态图能打印,忘记了就print一下

0
回复
AIStudio810258
#7 回复于2021-01
对对对,C跑后面去了。

你不是问的“NCHW和CHW有啥区别”么。。。

0
回复
thinc
#8 回复于2021-01
你不是问的“NCHW和CHW有啥区别”么。。。

其实就多了个维度呀,哈哈

0
回复
AIStudio810258
#9 回复于2021-01
thinc #8
其实就多了个维度呀,哈哈

C维度也挺调皮啊~

0
回复
a
a stan
#10 回复于2021-01

少个字母的区别

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户