Hello! I am new to Pytorch. and l wanna know how to use to load grey-scale image. When i used it to load image data to train Lenet-5 model , it shows that the dataset has three channels and do not fit the model’s input . I tried to translate the image to grey-scale image. but it did not work. would you please tell me the reason and help me to solve this problem? thanks!
IMG_9344.JPG2851×2138 2.53 MB