composer.algorithms.functional.cutout
- composer.algorithms.functional.cutout(X, n_holes, length)[source]
Implements CutOut augmentation from https://arxiv.org/abs/1708.04552 on the batch level. Adapted from the implementation in https://github.com/uoguelph-mlrg/Cutout
- Parameters
- Returns
X_cutout – Image with n_holes of dimension length x length cut out of it.
- Return type