mohamed_abdullah:

so I don’t know how this happens from the same image with the same preprocessing!


torchvision models are trained using this script 7, which normalizes the tensors via:
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
                                 std=[0.229, 0.224, 0.225])

while this is not the case in your script.