TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Methods/GridMask

GridMask

Computer VisionIntroduced 20003 papers
Source Paper

Description

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

x~=x×M\tilde{\mathbf{x}}=\mathbf{x} \times Mx~=x×M

where x∈RH×W×C\mathbf{x} \in R^{H \times W \times C}x∈RH×W×C represents the input image, M∈M \inM∈ {0,1}H×W\{0,1\}^{H \times W}{0,1}H×W is the binary mask that stores pixels to be removed, and x~∈RH×W×C\tilde{\mathbf{x}} \in R^{H \times W \times C}x~∈RH×W×C is the result produced by the algorithm. For the binary mask MMM, if Mi,j=1M_{i, j}=1Mi,j​=1 we keep pixel (i,j)(i, j)(i,j) in the input image; otherwise we remove it. GridMask is applied after the image normalization operation.

The shape of MMM looks like a grid, as shown in the Figure . Four numbers (r,d,δx,δy)\left(r, d, \delta_{x}, \delta_{y}\right)(r,d,δx​,δy​) are used to represent a unique MMM. Every mask is formed by tiling the units. rrr is the ratio of the shorter gray edge in a unit. ddd is the length of one unit. δ_x\delta\_{x}δ_x and δ_y\delta\_{y}δ_y are the distances between the first intact unit and boundary of the image.

Papers Using This Method

TC-SKNet with GridMask for Low-complexity Classification of Acoustic scene2022-10-05Instance Segmentation Challenge Track Technical Report, VIPriors Workshop at ICCV 2021: Task-Specific Copy-Paste Data Augmentation Method for Instance Segmentation2021-10-01GridMask Data Augmentation2020-01-13