Torchvision Transformation

Hello everyone,

I am trying data augmentation in Torchvision CIFAR10 dataset. But there is one catch, I can not find probability option, i.e. for example if I apply Pad then it will apply padding to every image, but since it is augmentation this augmentation need to be applied randomly with some Probablity and I cannot find any probability parameter unlike Albumentation.

Please guide me

Also I also want to know can we use Albumentation Transform in transform parameter of torchvision.datasets.CIFAR10

Thank You

Would transforms.RandomApply work for your use case?