Hello all, I have a paired image such as img1, img2. I want to apply the same transform during training for these images as
transform = transforms.Compose([
           transforms.RandomHorizontalFlip(),
           transforms.ToTensor(),
]
img1 = transform(img1)
img2 = transform(img2)

Is it possible to do it in the data loader of pytorch?