Segmentation Transformer: Object-Contextual Representations for Semantic Segmentation
Yuhui Yuan, Xiaokang Chen, Xilin Chen, Jingdong Wang
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/HRNet/HRNet-Semantic-SegmentationOfficialpytorch★ 0
- github.com/open-mmlab/mmsegmentationpytorch★ 9,690
- github.com/PaddlePaddle/PaddleSegpaddle★ 9,319
- github.com/openseg-group/openseg.pytorchpytorch★ 1,230
- github.com/JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Modelstf★ 157
- github.com/Burf/HRNetV2-OCR-Tensorflow2tf★ 0
- github.com/MindSpore-paper-code-3/code9/tree/main/OCRNetmindspore★ 0
- github.com/2024-MindSpore-1/Code4/tree/main/OCRNetmindspore★ 0
- github.com/rosinality/ocr-pytorchpytorch★ 0
- github.com/kingcong/OCRNetmindspore★ 0
Abstract
In this paper, we address the semantic segmentation problem with a focus on the context aggregation strategy. Our motivation is that the label of a pixel is the category of the object that the pixel belongs to. We present a simple yet effective approach, object-contextual representations, characterizing a pixel by exploiting the representation of the corresponding object class. First, we learn object regions under the supervision of ground-truth segmentation. Second, we compute the object region representation by aggregating the representations of the pixels lying in the object region. Last, % the representation similarity we compute the relation between each pixel and each object region and augment the representation of each pixel with the object-contextual representation which is a weighted aggregation of all the object region representations according to their relations with the pixel. We empirically demonstrate that the proposed approach achieves competitive performance on various challenging semantic segmentation benchmarks: Cityscapes, ADE20K, LIP, PASCAL-Context, and COCO-Stuff. Cityscapes, ADE20K, LIP, PASCAL-Context, and COCO-Stuff. Our submission "HRNet + OCR + SegFix" achieves 1-st place on the Cityscapes leaderboard by the time of submission. Code is available at: https://git.io/openseg and https://git.io/HRNet.OCR. We rephrase the object-contextual representation scheme using the Transformer encoder-decoder framework. The details are presented in~Section3.3.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| ADE20K | HRNetV2 + OCR + RMI (PaddleClas pretrained) | Validation mIoU | 47.98 | — | Unverified |
| ADE20K | OCR (ResNet-101) | Validation mIoU | 45.28 | — | Unverified |
| ADE20K | OCR(HRNetV2-W48) | Validation mIoU | 45.66 | — | Unverified |
| ADE20K val | OCR (HRNetV2-W48) | mIoU | 45.66 | — | Unverified |
| ADE20K val | HRNetV2 + OCR + RMI (PaddleClas pretrained) | mIoU | 47.98 | — | Unverified |
| ADE20K val | OCR (ResNet-101) | mIoU | 45.28 | — | Unverified |
| BDD100K val | OCRNet | mIoU | 60.1 | — | Unverified |
| Cityscapes test | OCR (ResNet-101, coarse) | Mean IoU (class) | 82.4 | — | Unverified |
| Cityscapes test | HRNetV2 + OCR + | Mean IoU (class) | 84.5 | — | Unverified |
| Cityscapes test | OCR (HRNetV2-W48, coarse) | Mean IoU (class) | 83 | — | Unverified |
| Cityscapes test | OCR (ResNet-101) | Mean IoU (class) | 81.8 | — | Unverified |
| Cityscapes test | HRNetV2 + OCR (w/ ASP) | Mean IoU (class) | 83.7 | — | Unverified |
| Cityscapes val | OCR (ResNet-101-FCN) | mIoU | 80.6 | — | Unverified |
| Cityscapes val | HRNetV2 + OCR + RMI (PaddleClas pretrained) | mIoU | 83.6 | — | Unverified |
| COCO-Stuff test | OCR (ResNet-101) | mIoU | 39.5 | — | Unverified |
| COCO-Stuff test | HRNetV2 + OCR + RMI (PaddleClas pretrained) | mIoU | 45.2 | — | Unverified |
| COCO-Stuff test | OCR (HRNetV2-W48) | mIoU | 40.5 | — | Unverified |
| LIP val | OCR (HRNetV2-W48) | mIoU | 56.65 | — | Unverified |
| LIP val | OCR (ResNet-101) | mIoU | 55.6 | — | Unverified |
| LIP val | HRNetV2 + OCR + RMI (PaddleClas pretrained) | mIoU | 58.2 | — | Unverified |
| PASCAL Context | OCR (ResNet-101) | mIoU | 54.8 | — | Unverified |
| PASCAL Context | OCR (HRNetV2-W48) | mIoU | 56.2 | — | Unverified |
| PASCAL Context | HRNetV2 + OCR + RMI (PaddleClas pretrained) | mIoU | 59.6 | — | Unverified |
| PASCAL VOC 2012 test | OCR (HRNetV2-W48) | Mean IoU | 84.5 | — | Unverified |
| PASCAL VOC 2012 test | OCR (ResNet-101) | Mean IoU | 84.3 | — | Unverified |