RandomApply
- class torchvision.transforms.v2.RandomApply(transforms: Union[Sequence[Callable], ModuleList], p:
Apply randomly a list of transformations with a given probability.
transforms (sequence or torch.nn.Module) – list of transformations
p (float) – probability of applying the list of transforms
Examples using RandomApply: