change_detection.pytorch icon indicating copy to clipboard operation
change_detection.pytorch copied to clipboard

使用灰度图像报错

Open zhenglvv opened this issue 2 years ago • 0 comments

在使用unet模型的时候 将输入的通道改成1后,报错 RuntimeError: Given groups=1, weight of size [64, 1, 7, 7], expected input[8, 3, 256, 256] to have 1 channels, but got 3 channels instead M )@0XTIC8MFCVG10OT`ME5

但是我的图像确实是但通道的 是我还需要修改某些地方吗

zhenglvv avatar Nov 02 '23 08:11 zhenglvv