Skip to content

RandomCutoutColor

source

RandomCutoutColor(
   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
)