Usually you load your images lazily, so that your transformations will only be applied on the loaded image.
However even if you preload your images and apply a transformation like transforms.RandomHorizontalFlip( ) internally PIL.Image.transpose(Image.FLIP_LEFT_RIGHT) 2 will be called, which returns a flipped version of the image so that the original image will still be preserved.