HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

SeMask: Semantically Masked Transformers for Semantic Segmentation

Jitesh Jain Anukriti Singh Nikita Orlov Zilong Huang Jiachen Li Steven Walton Humphrey Shi

SeMask: Semantically Masked Transformers for Semantic Segmentation

Abstract

Finetuning a pretrained backbone in the encoder part of an image transformer network has been the traditional approach for the semantic segmentation task. However, such an approach leaves out the semantic context that an image provides during the encoding stage. This paper argues that incorporating semantic information of the image into pretrained hierarchical transformer-based backbones while finetuning improves the performance considerably. To achieve this, we propose SeMask, a simple and effective framework that incorporates semantic information into the encoder with the help of a semantic attention operation. In addition, we use a lightweight semantic decoder during training to provide supervision to the intermediate semantic prior maps at every stage. Our experiments demonstrate that incorporating semantic priors enhances the performance of the established hierarchical encoders with a slight increase in the number of FLOPs. We provide empirical proof by integrating SeMask into Swin Transformer and Mix Transformer backbones as our encoder paired with different decoders. Our framework achieves a new state-of-the-art of 58.25% mIoU on the ADE20K dataset and improvements of over 3% in the mIoU metric on the Cityscapes dataset. The code and checkpoints are publicly available at https://github.com/Picsart-AI-Research/SeMask-Segmentation .

Code Repositories

Picsart-AI-Research/SeMask-Segmentation
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
semantic-segmentation-on-ade20kSeMask (SeMask Swin-L MSFaPN-Mask2Former)
Validation mIoU: 58.2
semantic-segmentation-on-ade20kSeMask (SeMask Swin-S FPN)
Params (M): 56
Validation mIoU: 47.63
semantic-segmentation-on-ade20kSeMask(SeMask Swin-L MSFaPN-Mask2Former, single-scale)
Validation mIoU: 57.0
semantic-segmentation-on-ade20kSeMask (SeMask Swin-L Mask2Former)
Validation mIoU: 57.5
semantic-segmentation-on-ade20kSeMask (SeMask Swin-B FPN)
Params (M): 96
Validation mIoU: 50.98
semantic-segmentation-on-ade20kSeMask (SeMask Swin-L FPN)
Validation mIoU: 53.52
semantic-segmentation-on-ade20kSeMask (SeMask Swin-T FPN)
Params (M): 35
Validation mIoU: 43.16
semantic-segmentation-on-ade20kSeMask (SeMask Swin-L MaskFormer)
Validation mIoU: 56.2
semantic-segmentation-on-ade20kSeMask (SeMask Swin-L FaPN-Mask2Former)
Validation mIoU: 58.2
semantic-segmentation-on-ade20k-valSeMask (SeMask Swin-L FaPN-Mask2Former)
mIoU: 58.2
semantic-segmentation-on-ade20k-valSeMask (SeMask Swin-L MSFaPN-Mask2Former, single-scale)
mIoU: 57.0
semantic-segmentation-on-ade20k-valSeMask (SeMask Swin-L MaskFormer)
mIoU: 56.2
semantic-segmentation-on-ade20k-valSeMask (SeMask Swin-L FPN)
mIoU: 53.5
semantic-segmentation-on-ade20k-valSeMask (SeMask Swin-L Mask2Former)
mIoU: 57.5
semantic-segmentation-on-ade20k-valSeMask (SeMask Swin-L MSFaPN-Mask2Former)
mIoU: 58.2
semantic-segmentation-on-cityscapes-valSeMask (SeMask Swin-L FPN)
mIoU: 80.39
semantic-segmentation-on-cityscapes-valSeMask (SeMask Swin-L Mask2Former)
mIoU: 84.98

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp