I’m pre-processing my data to feed into a CNN and am applying RandomApply with a probability of 0.3.
Is there a way to apply a transformation if the transformation in RandomApply didn’t get selected?
In other words, how do I apply another transformation if the other 70% was selected?
(Kind of like if-else)
transforms.Compose([transforms.RandomApply(
                        [transforms.Resize((720+50, 720+50))], p=0.3),
                    transforms.ToTensor(),
                    transforms.Normalize(0.5, 0.5)])