composer.algorithms.functional.cutout
- composer.algorithms.functional.cutout(X: torch.Tensor, n_holes: int, length: int) torch.Tensor [source]
See
CutOut
.- Parameters
X (Tensor) – Batch Tensor image of size (B, C, H, W).
n_holes – Integer number of holes to cut out
length – Side length of the square hole to cut out.
- Returns
X_cutout – Image with n_holes of dimension length x length cut out of it.