mindspore.dataset.transforms.c_transforms.RandomApply
- class mindspore.dataset.transforms.c_transforms.RandomApply(transforms, prob=0.5)[source]
Randomly perform a series of transforms with a given probability.
- Parameters
Examples
>>> rand_apply = c_transforms.RandomApply([c_vision.RandomCrop(512)]) >>> image_folder_dataset = image_folder_dataset.map(operations=rand_apply)