Per-Pixel Classification is Not All You Need for Semantic Segmentation

Modern approaches typically formulate semantic segmentation as a per-pixel classification task, while instance-level segmentation is handled with an alternative mask classification. Our key insight: mask classification is sufficiently general to solve both semantic- and instance-level segmentation tasks in a unified manner using the exact same model, loss, and training procedure. Following this observation, we propose MaskFormer, a simple mask classification model which predicts a set of binary masks, each associated with a single global class label prediction. Overall, the proposed mask classification-based method simplifies the landscape of effective approaches to semantic and panoptic segmentation tasks and shows excellent empirical results. In particular, we observe that MaskFormer outperforms per-pixel classification baselines when the number of classes is large. Our mask classification-based method outperforms both current state-of-the-art semantic (55.6 mIoU on ADE20K) and panoptic segmentation (52.7 PQ on COCO) models.

PDF Abstract NeurIPS 2021 PDF NeurIPS 2021 Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Semantic Segmentation ADE20K MaskFormer(ResNet-101) Validation mIoU 48.1 # 142
Semantic Segmentation ADE20K MaskFormer(Swin-B) Validation mIoU 53.8 # 67
Semantic Segmentation ADE20K val MaskFormer (Swin-L, ImageNet-22k pretrain) mIoU 55.6 # 26
Panoptic Segmentation ADE20K val MaskFormer (R101 + 6 Enc) PQ 35.7 # 21
Panoptic Segmentation COCO minival MaskFormer (single-scale) PQ 52.7 # 17
SQ 81.8 # 2
RQ 63.5 # 1
PQth 58.5 # 13
PQst 44.0 # 13
Panoptic Segmentation COCO test-dev MaskFormer (Swin-L) PQ 53.3 # 9
PQst 44.5 # 8
PQth 59.1 # 9
Semantic Segmentation Mapillary val MaskFormer (ResNet-50) mIoU 55.4 # 4

Methods


No methods listed for this paper. Add relevant methods here