Meng-Hao Guo, Cheng-Ze Lu, Qibin Hou, ZhengNing Liu, Ming-Ming Cheng, Shi-Min Hu
We present SegNeXt, a simple convolutional network architecture for semantic segmentation. Recent transformer-based models have dominated the field of semantic segmentation due to the efficiency of self-attention in encoding spatial information. In this paper, we show that convolutional attention is a more efficient and effective way to encode contextual information than the self-attention mechanism in transformers. By re-examining the characteristics owned by successful segmentation models, we discover several key components leading to the performance improvement of segmentation models. This motivates us to design a novel convolutional attention network that uses cheap convolutional operations. Without bells and whistles, our SegNeXt significantly improves the performance of previous state-of-the-art methods on popular benchmarks, including ADE20K, Cityscapes, COCO-Stuff, Pascal VOC, Pascal Context, and iSAID. Notably, SegNeXt outperforms EfficientNet-L2 w/ NAS-FPN and achieves 90.6% mIoU on the Pascal VOC 2012 test leaderboard using only 1/10 parameters of it. On average, SegNeXt achieves about 2.0% mIoU improvements compared to the state-of-the-art methods on the ADE20K datasets with the same or fewer computations. Code is available at https://github.com/uyzhang/JSeg (Jittor) and https://github.com/Visual-Attention-Network/SegNeXt (Pytorch).
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Semantic Segmentation | DSEC | mIoU | 71.55 | SegNeXt-B |
| Semantic Segmentation | DDD17 | mIoU | 71.46 | SegNeXt-B |
| Semantic Segmentation | iSAID | mIoU | 70.3 | SegNeXt-L |
| Semantic Segmentation | iSAID | mIoU | 69.9 | SegNeXt-B |
| Semantic Segmentation | iSAID | mIoU | 68.8 | SegNeXt-S |
| Semantic Segmentation | iSAID | mIoU | 68.3 | SegNeXt-T |
| Semantic Segmentation | Cityscapes val | Frame (fps) | 28.1 | SegNext-T-Seg100 |
| 10-shot image generation | DSEC | mIoU | 71.55 | SegNeXt-B |
| 10-shot image generation | DDD17 | mIoU | 71.46 | SegNeXt-B |
| 10-shot image generation | iSAID | mIoU | 70.3 | SegNeXt-L |
| 10-shot image generation | iSAID | mIoU | 69.9 | SegNeXt-B |
| 10-shot image generation | iSAID | mIoU | 68.8 | SegNeXt-S |
| 10-shot image generation | iSAID | mIoU | 68.3 | SegNeXt-T |
| 10-shot image generation | Cityscapes val | Frame (fps) | 28.1 | SegNext-T-Seg100 |