Skip to content

RandomCutout

source

RandomCutout(
   min_cut: int = 10, max_cut: int = 30
)


Random Cutout operation for image augmentation.

Args

  • min_cut (int) : Min size of the cut shape.
  • max_cut (int) : Max size of the cut shape.

Returns

Augmented images.

Methods:

.forward

source

.forward(
   x: th.Tensor
)