Convert image to a different image size

I am working on image classification using transformers; I have a data set of images with input size (128* 128), I want to convert the images into a 224*224.

Thanks in advance

You could use torchvision.transforms.Resize to resize the images before feeding them into the model.

1 Like

" You could use torchvision.transforms.Resize to resize the images before feeding them into the model."
I agree!