What is: GridMask?
Source | GridMask Data Augmentation |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
GridMask is a data augmentation method that randomly removes some pixels of an input image. Unlike other methods, the region that the algorithm removes is neither a continuous region nor random pixels in dropout. Instead, the algorithm removes a region with disconnected pixel sets, as shown in the Figure.
We express the setting as
where represents the input image, is the binary mask that stores pixels to be removed, and is the result produced by the algorithm. For the binary mask , if we keep pixel in the input image; otherwise we remove it. GridMask is applied after the image normalization operation.
The shape of looks like a grid, as shown in the Figure . Four numbers are used to represent a unique . Every mask is formed by tiling the units. is the ratio of the shorter gray edge in a unit. is the length of one unit. and are the distances between the first intact unit and boundary of the image.