How did you load your data?
It’s crucial to apply the same pre-processing on the image data as was done while pre-training the model.
Also, the image size should be usually the same, but I assume you are using the same data.