Papers › Context Encoding for Semantic Segmentation

Context Encoding for Semantic Segmentation

23 Mar 2018CVPR 2018 6arXiv:1803.08904archive 2025-07-28

Hang Zhang, Kristin Dana, Jianping Shi, Zhongyue Zhang, Xiaogang Wang, Ambrish Tyagi, Amit Agrawal

Recent work has made significant progress in improving spatial resolution for pixelwise labeling with Fully Convolutional Network (FCN) framework by employing Dilated/Atrous convolution, utilizing multi-scale features and refining boundaries. In this paper, we explore the impact of global contextual information in semantic segmentation by introducing the Context Encoding Module, which captures the semantic context of scenes and selectively highlights class-dependent featuremaps. The proposed Context Encoding Module significantly improves semantic segmentation results with only marginal extra computation cost over FCN. Our approach has achieved new state-of-the-art results 51.7% mIoU on PASCAL-Context, 85.9% mIoU on PASCAL VOC 2012. Our single model achieves a final score of 0.5567 on ADE20K test set, which surpass the winning entry of COCO-Place Challenge in 2017. In addition, we also explore how the Context Encoding Module can improve the feature representation of relatively shallow networks for the image classification on CIFAR-10 dataset. Our 14 layer network has achieved an error rate of 3.45%, which is comparable with state-of-the-art approaches with over 10 times more layers. The source code for the complete system are publicly available.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

No sample from the archive's official repository (zhanghang1989/PyTorch-Encoding) is linked to this paper; the 8 samples below come from 2 community repositories. Syntology harvested code from zhanghang1989/PyTorch-Encoding for 2 other papers.

zhanghang1989/PyTorch-Encoding: Syntology's graph links these samples to Deep TEN: Texture Encoding Network (arXiv:1612.02844; that paper's own run record: 0 ran · 4 unverified) and ResNeSt: Split-Attention Networks (arXiv:2004.08955; that paper's own run record: 28 ran (of which 0 constructed an object rather than computing a result; 21 with no instrument failure: 0 honoured, 0 violated, 21 with no contract checked; 7 where Syntology's instrument failed) · 20 unverified); nothing checks that they implement this paper's method.

Syntology 8 code samples harvested from 2 repositories linked to this paper: 6 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 0 honoured, 0 violated, 5 with no contract checked; 1 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 8 samples from 2 repositories, 6 ran (5 with no instrument failure; 1 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 4 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

zhanghang1989/PyTorch-Encoding officialmentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Deep TEN: Texture Encoding Network (arXiv:1612.02844; that paper's own run record: 0 ran · 4 unverified) and ResNeSt: Split-Attention Networks (arXiv:2004.08955; that paper's own run record: 28 ran (of which 0 constructed an object rather than computing a result; 21 with no instrument failure: 0 honoured, 0 violated, 21 with no contract checked; 7 where Syntology's instrument failed) · 20 unverified); nothing checks that they implement this paper's method. report
CWanli/myencoding mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
Praveen94/pytorch-encoding mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
RyanHTR/PyTorch-Encoding mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
etmwb/cvsegmentation mentioned on GitHubpytorchMITSyntology: 7 samples, 5 ran (0 instrument-failed) · 2 unverified report
kmaninis/pytorch-encoding mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
xllau/PyTorch-Encoding mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
zhusiling/EncNet mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Deep TEN: Texture Encoding Network (arXiv:1612.02844; that paper's own run record: 0 ran · 4 unverified); nothing checks that they implement this paper's method. report
zhusiling/Pytorch-Encoding-boundary mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
PaddlePaddle/PaddleSeg paddleSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to EdgeFlow: Achieving Practical Interactive Segmentation with Edge-Guided Flow (arXiv:2109.09406; that paper's own run record: 5 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
justld/ENCNet_paddle paddleSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
open-mmlab/mmsegmentation pytorchApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Perceptual Artifacts Localization for Image Synthesis Tasks (arXiv:2310.05590; that paper's own run record: 6 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 1 violated, 0 with no contract checked; 4 where Syntology's instrument failed) · 2 unverified); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

8 samples harvested: 6 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 0 honoured, 0 violated, 5 with no contract checked; 1 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · our draft was wrong
5ran
2unverified

Licence: 7 of the 8 samples are 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 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

etmwb/cvsegmentation community (archive-listed) 7 samples, 5 ran (0 instrument-failed) · 2 unverified
get_city_pairs cvss/datasets/cityscapes.py ran MIT recorded; this copy not marked cleared · pointer only · ccb24f9418500942 · report fixture: signature folder:str/0/str, split:str/0/str · returned tuple · level recorded 2026-09-25
get_city_pairs cvss/datasets/cityscapescoarse.py ran fingerprinted MIT recorded; this copy not marked cleared · pointer only · 062e32cfbd653f5e · report fixture: signature folder:str/0/str, mode:str/0/str · returned tuple · level recorded 2026-09-26
get_folder_images cvss/datasets/folder.py ran MIT recorded; this copy not marked cleared · pointer only · 17ed938d47df8418 · report fixture: signature img_folder:str/0/str · returned list · level recorded 2026-09-26
short_hash in 15 papers cvss/models/model_store.py ran MIT recorded; this copy not marked cleared · pointer only · 61402045af693de1 · report fixture: signature name:str/0/str · returned str · level recorded 2026-09-26
test_batchify_fn cvss/datasets/base.py ran MIT recorded; this copy not marked cleared · pointer only · f8b881dae14f02c3 · report fixture: signature data:list/1/Tensor · returned list · level recorded 2026-09-25
get_deepten cvss/models/deepten.py unverified MIT recorded; this copy not marked cleared · pointer only · d8fa6abe733ae073 · report
get_deepten_resnet50_minc cvss/models/deepten.py unverified MIT recorded; this copy not marked cleared · pointer only · a67af4c02a68b8dd · report
justld/ENCNet_paddle community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
get_test_config in 9 papers val.py ran · our draft was wrong Apache-2.0 (permissive) · 20eb3e6b0aba73e4 · report fixture: signature cfg:SimpleConfig/0/?, args:SimpleArgs/0/? · returned dict · level recorded 2026-09-22

Tasks

Image ClassificationSegmentationSemantic SegmentationThermal Image Segmentationimage-classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Segmentation ADE20K EncNet Test Score 55.67 #200 of 235 Archive leaderboard report
Semantic Segmentation ADE20K EncNet Validation mIoU 44.65 #200 of 235 Archive leaderboard report
Semantic Segmentation ADE20K val EncNet (ResNet-101) mIoU 44.65 #85 of 95 Archive leaderboard report
Semantic Segmentation PASCAL Context EncNet (ResNet-101) mIoU 51.7 #50 of 66 Archive leaderboard report
Semantic Segmentation PASCAL VOC 2012 test EncNet Mean IoU 85.9% #7 of 51 Archive leaderboard report
Semantic Segmentation PASCAL VOC 2012 test EncNet (ResNet-101) Mean IoU 82.9% #21 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 BlockConvolutionFCNGlobal Average PoolingKaiming InitializationMax PoolingReLUResidual BlockResidual ConnectionSyncBN

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