Was my imaged flipped?

With torchvision.transforms.RandomHorizontalFlip I can randomly flip the input image. Is there a way to retireve whether the image was flipped or not? I need this to adapt my target.

Best way to deal with this is to write your own transform. Check out the code of torchvision.transforms.RandomHorizontalFlip