Papers › Segmentation Transformer: Object-Contextual Representations for Semantic Segmentation

Segmentation Transformer: Object-Contextual Representations for Semantic Segmentation

24 Sep 2019ECCV 2020 8arXiv:1909.11065archive 2025-07-28

Yuhui Yuan, Xiaokang Chen, Xilin Chen, Jingdong Wang

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1909.11065")

Code

Syntology Ran 4 of 9 code samples harvested from 4 repositories linked to this paper; 5 have no recorded run. Of those that ran: 4 ran · our draft was wrong.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 8 samples from 3 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

HRNet/HRNet-Semantic-Segmentation officialmentioned on GitHubpytorchNOASSERTION report
Burf/HRNetV2-OCR-Tensorflow2 mentioned on GitHubtfMIT report
openseg-group/openseg.pytorch mentioned on GitHubpytorch report
rosinality/ocr-pytorch mentioned on GitHubpytorch report
kingcong/OCRNet mindsporenot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report
open-mmlab/mmsegmentation pytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 4 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
5unverified

Licence: 1 of the 9 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv3x3 HRNet/HRNet-Semantic-Segmentation/lib/models/seg_hrnet.py official repository ran · our draft was wrong no licence file found · pointer only · fac5364e2f53c6db · report
conv1d rosinality/ocr-pytorch/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · ab8dda773f3d5789 · report
conv2d rosinality/ocr-pytorch/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 9333dd68e11e060d · report
generateInstanceStats openseg-group/openseg.pytorch/lib/metrics/cityscapes/evaluation/evalPixelLevelSemanticLabeling.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 7d4554a0bd6eb4d2 · report
generateMatrix openseg-group/openseg.pytorch/lib/metrics/cityscapes/evaluation/evalPixelLevelSemanticLabeling.py community (archive-listed) unverified MIT (permissive) · 83f120a07b1755b4 · report
getPrediction openseg-group/openseg.pytorch/lib/metrics/cityscapes/evaluation/evalPixelLevelSemanticLabeling.py community (archive-listed) unverified MIT (permissive) · a9c50973bbd521dc · report
hr_basic_block Burf/HRNetV2-OCR-Tensorflow2/hrnet/hrnet.py community (archive-listed) unverified MIT (permissive) · 6b491db5a0440458 · report
hr_bottleneck_block Burf/HRNetV2-OCR-Tensorflow2/hrnet/hrnet.py community (archive-listed) unverified MIT (permissive) · be1dcef7d7100993 · report
hr_transition_block Burf/HRNetV2-OCR-Tensorflow2/hrnet/hrnet.py community (archive-listed) unverified MIT (permissive) · 05831920f7a920c9 · report

Tasks

DecoderObjectSegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Segmentation ADE20K HRNetV2 + OCR + RMI (PaddleClas pretrained) Validation mIoU 47.98 #155 of 235 Archive leaderboard report
Semantic Segmentation ADE20K OCR(HRNetV2-W48) Validation mIoU 45.66 #187 of 235 Archive leaderboard report
Semantic Segmentation ADE20K OCR (ResNet-101) Validation mIoU 45.28 #193 of 235 Archive leaderboard report
Semantic Segmentation ADE20K val HRNetV2 + OCR + RMI (PaddleClas pretrained) mIoU 47.98 #63 of 95 Archive leaderboard report
Semantic Segmentation ADE20K val OCR (HRNetV2-W48) mIoU 45.66 #79 of 95 Archive leaderboard report
Semantic Segmentation ADE20K val OCR (ResNet-101) mIoU 45.28 #81 of 95 Archive leaderboard report
Semantic Segmentation BDD100K val OCRNet mIoU 60.1 #8 of 24 Archive leaderboard report
Semantic Segmentation COCO-Stuff test HRNetV2 + OCR + RMI (PaddleClas pretrained) mIoU 45.2% #9 of 21 Archive leaderboard report
Semantic Segmentation COCO-Stuff test OCR (HRNetV2-W48) mIoU 40.5% #12 of 21 Archive leaderboard report
Semantic Segmentation COCO-Stuff test OCR (ResNet-101) mIoU 39.5% #16 of 21 Archive leaderboard report
Semantic Segmentation Cityscapes test HRNetV2 + OCR + Mean IoU (class) 84.5% #9 of 105 Archive leaderboard report
Semantic Segmentation Cityscapes test HRNetV2 + OCR (w/ ASP) Mean IoU (class) 83.7% #12 of 105 Archive leaderboard report
Semantic Segmentation Cityscapes test OCR (HRNetV2-W48, coarse) Mean IoU (class) 83.0% #20 of 105 Archive leaderboard report
Semantic Segmentation Cityscapes test OCR (ResNet-101, coarse) Mean IoU (class) 82.4% #27 of 105 Archive leaderboard report
Semantic Segmentation Cityscapes test OCR (ResNet-101) Mean IoU (class) 81.8% #34 of 105 Archive leaderboard report
Semantic Segmentation Cityscapes val HRNetV2 + OCR + RMI (PaddleClas pretrained) mIoU 83.6 #23 of 99 Archive leaderboard report
Semantic Segmentation Cityscapes val OCR (ResNet-101-FCN) mIoU 80.6 #48 of 99 Archive leaderboard report
Semantic Segmentation LIP val HRNetV2 + OCR + RMI (PaddleClas pretrained) mIoU 58.2% #5 of 13 Archive leaderboard report
Semantic Segmentation LIP val OCR (HRNetV2-W48) mIoU 56.65% #6 of 13 Archive leaderboard report
Semantic Segmentation LIP val OCR (ResNet-101) mIoU 55.6% #8 of 13 Archive leaderboard report
Semantic Segmentation PASCAL Context HRNetV2 + OCR + RMI (PaddleClas pretrained) mIoU 59.6 #15 of 66 Archive leaderboard report
Semantic Segmentation PASCAL Context OCR (HRNetV2-W48) mIoU 56.2 #24 of 66 Archive leaderboard report
Semantic Segmentation PASCAL Context OCR (ResNet-101) mIoU 54.8 #33 of 66 Archive leaderboard report
Semantic Segmentation PASCAL VOC 2012 test OCR (HRNetV2-W48) Mean IoU 84.5% #12 of 51 Archive leaderboard report
Semantic Segmentation PASCAL VOC 2012 test OCR (ResNet-101) Mean IoU 84.3% #13 of 51 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionGlobal Average PoolingKaiming InitializationMax PoolingReLUResidual BlockResidual Connection

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections