I try to run the following program for image classification problems in Pytorch. I am new to PyTorch and I am not getting what’s wrong with the code. I tried reshaping the images but no help. I am running this code with Cuda. I have around 750 classes and 10-20 images in one class. My dataset is a benchmark dataset and every image has a size of 60*160.
Getting this error and I don’t know where to make changes. Given groups=1, the weight of size 16 16 3 3, expected input[16, 64, 222, 222] to have 16 channels but got 64 channels instead.