Open hifn123p opened 5 years ago
The inputs should have RGB 3 channels. Otherwise, you need to modify the network arch/configurations.
Yes,i use gray images. But it have 3 channels, and each channel has the same value. What should I modify?
You may need to check your input. According to the error log: expected input[16, 1, 32, 32] to have 3 channels
, your input has only 1 channel.
@ hifn123p I have the same problem as you. I have also checked the data set. It is indeed a three-channel image, but it is the same error as you reported. Have you solved this problem?
RuntimeError: Given groups=1, weight of size 64 3 3 3, expected input[1, 1, 380, 200] to have 3 channels, but got 1 channels instead
RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[16, 1, 32, 32] to have 3 channels, but got 1 channels instead