pub fn random_erasing(
image: &Tensor,
p: f32,
scale_min: f32,
scale_max: f32,
ratio_min: f32,
ratio_max: f32,
fill_value: f32,
seed: u64,
) -> Result<Tensor, ImgProcError>Expand description
Random erasing (cutout) augmentation.
Random erasing (cutout): randomly erase a rectangular region with probability p.
The erased region is filled with fill_value (typically 0.0).