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