R/transforms-generics.R
transform_random_erasing.Rd'Random Erasing Data Augmentation' by Zhong et al. See https://arxiv.org/pdf/1708.04896
A magick-image, array or torch_tensor.
(numeric): Probability that the random erasing operation will be performed.
(numeric vector of length 2): Range of proportion of erased area against input image.
(numeric vector of length 2): Range of aspect ratio of erased area.
(numeric vector or numeric or character): Erasing value.
Default is 0. If a single numeric value, it is used to erase all
pixels. If a numeric vector of length 3, it is used to erase R, G, B
channels respectively. If the string "random", erasing each pixel with
random values.
(logical): Boolean to make this transform inplace. Default
set to FALSE.