錯誤
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不一樣。