BatchRandomApply#
- class torchaug.batch_transforms.BatchRandomApply(transforms, p=0.5, inplace=False)[source]#
Apply randomly a list of transformations to a batch of images with a given probability.
- Parameters:
transforms (
list[Module] |Module) – List of transformations.p (
float, optional) – Probability to apply the transform.