How to change input size

What changes must be made to use 28*28 images?

If it’s about image input, Use Resize () of Pytorch. Give the required size you want inside of arguments as a tuple.

Thank you but wouldn’t resizing lead to loss of image data

Hi, a good resizing will still keep the important features. But in the case of sensitive or very complex data resizing to a very low dimension will lead to some loss.
Otherwise, u can create a custom function to which will take the maximum sized image’s shape and covert all the images in that size. And u can get all the images of the same sizes as a result.