Solved by fmassa in post #2 
              
              
                Just use the standard ImageFolder dataset class, and add a transform that resizes the image to 64x64 or 32x32? This will be a bit slower than having converted straight away the images to 32x32 and loading them, but it’s much more flexible (and saves space in disk!)