when I use torchvison.transforms to Data Augmentation for segmentation task‘s input image and label,How can I guarantee that the two operations are the same?
image input
input_transform = transform.Compose([
transform.RandomRotation(2),
transform.ToTensor(),
transform.Normalize([.485, .456, .406], [.229, .224, .225])])
label input
input_transform = transform.Compose([
transform.RandomRotation(2)])
Make sure the rotation angle is the same?