My custom Dataset returns 3 objects: 2 images (as a dictionary) and the label (the same for both images):
def __getitem__(self, idx):
    ...
    return {'x1': img1, 'x2': img2}, label

I’m wondering whether the transformations I have defined are applied to both images:
transform_train = transforms.Compose([
    transforms.RandomRotation(degrees=30), 
    transforms.RandomVerticalFlip(), 
    transforms.RandomHorizontalFlip(), 
    transforms.ToTensor(), 
    transforms.Normalize(means, stds)
])

Is this the case or do I have to modify them?