Skip to content

Cutout augmentation (augmentations.dropout.cutout)

class albumentations.augmentations.dropout.cutout.Cutout (num_holes=8, max_h_size=8, max_w_size=8, fill_value=0, always_apply=False, p=0.5) [view source on GitHub]

CoarseDropout of the square regions in the image.

Parameters:

Name Type Description
num_holes int

number of regions to zero out

max_h_size int

maximum height of the hole

max_w_size int

maximum width of the hole

fill_value int, float, list of int, list of float

value for dropped pixels.

Targets: image

Image types: uint8, float32

Reference: | https://arxiv.org/abs/1708.04552 | https://github.com/uoguelph-mlrg/Cutout/blob/master/util/cutout.py | https://github.com/aleju/imgaug/blob/master/imgaug/augmenters/arithmetic.py