Hi all,
I would like to use albumentations for image augmentation. I would like to transform from “transforms.Compose” to “A.Compose” but I don’t know how to do it for this simple example bellow.
Can someone please show me with this simple example bellow how to use albumentations.
Thank you for your help.
t_transforms = transforms.Compose([transforms.Grayscale(num_output_channels = 1),
transforms.Resize((224, 224)),
transforms.RandomAffine(degrees = 50, translate = (0.3, 0.3), scale = (0.45, 1), shear = (-45, 45, -45, 45))
transforms.RandomCrop(224),
transforms.RandomHorizontalFlip(),	
transforms.ToTensor(),
transforms.Normalize((MEAN,), (STANDARD_DEVIATION,))
])