likyoo / change_detection.pytorch

Deep learning models for change detection of remote sensing images
MIT License
331 stars 59 forks source link

使用灰度图像报错 #28

Open zhenglvv opened 11 months ago

zhenglvv commented 11 months ago

在使用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

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