Skip to content

semipy.transforms.Cutout

Warning

This section is in construction.

    class semipy.transforms.Cutout(n_holes, length)

Code for Cutout augmentation from Terrance DeVries & Graham W. Taylor, 2017, Improved Regularization of Convolutional Neural Networks with Cutout, https://arxiv.org/abs/1708.04552. You can find the original code at https://github.com/uoguelph-mlrg/Cutout.

Parameters

  • n_holes (int) - Number of patches to cut out of each image.
  • length (int) - The length (in pixels) of each square patch.