RuntimeError: Given groups=1, weight of size [64, 3, 7, 7], expected input[1, 8, 600, 800] to have 3 channels, but got 8 channels instead

# x is your image with shape [8,1,600,800]
x2 = torch.cat((x,x,x),1)
1 Like