问题截图问题分析解决办法:
问题截图
RuntimeError: Given groups=1, weight of size [64,8,3,3],expected input[16,12,174,145] to have 8 channels,but got 12 channels instead.
分析:因为需要,我将输入网络的Tensor维度改了,因此出现了这个问题。看问题的描述:网络的输入通道数是8,但是具体却输入了12.
解决办法:通过编译器的提示,一步一步回溯,找到了Unet模型,将输入通道数改成12就可以了。


![【Python/Pytorch - Bug】-- RuntimeError: ,expected input[16,12,174,145] to have 8 channels,but got 12 【Python/Pytorch - Bug】-- RuntimeError: ,expected input[16,12,174,145] to have 8 channels,but got 12](http://www.mshxw.com/aiimages/31/740684.png)
