image = image.unsqueeze (1).expand (-1, 3, -1, -1, 1)


I tried this for a small amount of my dataset and it worked. Now I am going to do it on the whole dataset (435 3D MRIs).
So, basically all this does is ‘transforming’ the grayscale images to RGB (3 channels).
Also, I could find a model that initially was trained for grayscale 3D images and therefore I wouldn’t face this problem right ?
Thank you again for sharing your knowledge, you’ve been really helpful!!