What’s odd is that even if I comment out the color jittering, I don’t get the same output. Seems like it’s not a problem with your provided solution but rather the way in which I am displaying these images.
What is the right way to convert the PIL Image back into a torch tensor for both viewing purposes as well as to use in the forward() function?