AugmentΒΆ

CutMix(*[, alpha, labels_getter])

Apply CutMix to the provided batch of images and labels.

MixUp(*[, alpha, labels_getter])

Apply MixUp to the provided batch of images and labels.

RandomErasing([p, scale, ratio, value, ...])

Randomly select a rectangle region in the input image or video and erase its pixels.

JPEG(quality)

Apply JPEG compression and decompression to the given images.