transform_random_apply: Apply a list of transformations randomly with a given...

View source: R/transforms-generics.R

transform_random_applyR Documentation

Apply a list of transformations randomly with a given probability

Description

Apply a list of transformations randomly with a given probability

Usage

transform_random_apply(img, transforms, p = 0.5)

Arguments

img

A magick-image, array or torch_tensor.

transforms

(list): List of transformations.

p

(numeric): Probability.

See Also

Other combining_transforms: prepare_sahi_split(), transform_five_crop(), transform_random_choice(), transform_random_order(), transform_resized_crop(), transform_ten_crop()


torchvision documentation built on Oct. 14, 2026, 1:09 a.m.