RuntimeError: Given groups=1, weight of size [16, 1, 3, 3], expected input[16, 3, 1, 28] to have 1 channels, but got 3 channels instead

前端 未结 0 1588
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 20:10

I know my images have only 1 channel so the first conv layer is (1,16,3,1) , but I have no idea why I got such an error.

Here is my code (I post only the related part

相关标签:
回答
  • 消灭零回复
提交回复
热议问题