错误
Pytorch RuntimeERROR: Given groups=1 weights of size [256,64,1,1]
expected input[1,16,256,256] to have 64 channels,
but got 16 channels instead.
错误分析
Given groups=1 weights of size [256,64,1,1]
代表卷积核的channel 大小为 64->256 ,大小为1*1
expected input [1,16,256,256] to have 64 channels
代表现在要卷积的feature的大小,channel为16, 其实我们期望的输入feature大小channel 为64个通道
but got 16 channel instead
代表我们得到16个channels 的feature 与预期64个channel不一样。