SeMask Mask2Former

December 24, 2021 · View on GitHub

This repo contains the code for our paper SeMask: Semantically Masked Transformers for Semantic Segmentation. It is based on Mask2Former.

Contents

  1. Results
  2. Setup Instructions
  3. Citing SeMask

1. Results

  • † denotes the backbones were pretrained on ImageNet-22k and 384x384 resolution images.
  • Pre-trained models can be downloaded following the instructions given under tools.

ADE20K

MethodBackboneCrop SizemIoUmIoU (ms+flip)#paramsconfigCheckpoint
SeMask-L Mask2FormerSeMask Swin-L640x64056.4157.52222Mconfigcheckpoint

Cityscapes

MethodBackboneCrop SizemIoUmIoU (ms+flip)#paramsconfigCheckpoint
SeMask-L Mask2FormerSeMask Swin-L512x102483.9784.98222Mconfigcheckpoint

2. Setup Instructions

Installation

  • We developed the codebase using Pytorch v1.9.0 and python 3.8.
    pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
    
  • See installation instructions.

Getting Started

See Preparing Datasets for Mask2Former.

See Getting Started with Mask2Former.

3. Citing SeMask

@article{jain2021semask,
  title={SeMask: Semantically Masking Transformer Backbones for Effective Semantic Segmentation},
  author={Jitesh Jain and Anukriti Singh and Nikita Orlov and Zilong Huang and Jiachen Li and Steven Walton and Humphrey Shi},
  journal={arXiv},
  year={2021}
}