Papers › Dual Attention Network for Scene Segmentation

Dual Attention Network for Scene Segmentation

9 Sep 2018CVPR 2019 6arXiv:1809.02983archive 2025-07-28

Jun Fu, Jing Liu, Haijie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, Hanqing Lu

In this paper, we address the scene segmentation task by capturing rich contextual dependencies based on the selfattention mechanism. Unlike previous works that capture contexts by multi-scale features fusion, we propose a Dual Attention Networks (DANet) to adaptively integrate local features with their global dependencies. Specifically, we append two types of attention modules on top of traditional dilated FCN, which model the semantic interdependencies in spatial and channel dimensions respectively. The position attention module selectively aggregates the features at each position by a weighted sum of the features at all positions. Similar features would be related to each other regardless of their distances. Meanwhile, the channel attention module selectively emphasizes interdependent channel maps by integrating associated features among all channel maps. We sum the outputs of the two attention modules to further improve feature representation which contributes to more precise segmentation results. We achieve new state-of-the-art segmentation performance on three challenging scene segmentation datasets, i.e., Cityscapes, PASCAL Context and COCO Stuff dataset. In particular, a Mean IoU score of 81.5% on Cityscapes test set is achieved without using coarse data. We make the code and trained model publicly available at https://github.com/junfu1115/DANet

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

Syntology 7 code samples harvested from 1 repository linked to this paper: 5 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; 0 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code; here there are none.

By repository: official repository: 7 samples from 1 repository, 5 ran (5 with no instrument failure; 0 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 5 of its repositories that Syntology harvested for other papers:

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

junfu1115/DANet officialmentioned in papermentioned on GitHubpytorchMITSyntology: 7 samples, 5 ran (0 instrument-failed) · 2 unverified report
JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models mentioned on GitHubtfSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation (arXiv:1802.02611; that paper's own run record: 44 ran (of which 17 constructed an object rather than computing a result; 28 with no instrument failure: 2 honoured, 0 violated, 26 with no contract checked; 16 where Syntology's instrument failed) · 28 unverified); nothing checks that they implement this paper's method. report
hbzhang/AwesomeSelfDriving mentioned on GitHubSyntology: not harvested report
niecongchong/danet-keras mentioned on GitHubtfSyntology: not harvested report
osmr/imgclsmob mentioned on GitHubmxnetMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to 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
xmu-xiaoma666/External-Attention-pytorch mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Attention Is All You Need (arXiv:1706.03762; that paper's own run record: 610 ran (of which 293 constructed an object rather than computing a result; 529 with no instrument failure: 45 honoured, 15 violated, 469 with no contract checked; 81 where Syntology's instrument failed) · 336 unverified), RepVGG: Making VGG-style ConvNets Great Again (arXiv:2101.03697; that paper's own run record: 13 ran (of which 7 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 0 violated, 8 with no contract checked; 5 where Syntology's instrument failed) · 3 unverified), Involution: Inverting the Inherence of Convolution for Visual Recognition (arXiv:2103.06255; that paper's own run record: 7 ran (of which 7 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 0 where Syntology's instrument failed) · 2 unverified; every one of the 7 samples that ran constructed an object rather than computing a result) and 4 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. report
yiskw713/DualAttention_for_Segmentation mentioned on GitHubpytorchSyntology: not harvested report
yougoforward/hlzhu_DANet_git mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
zhenxingsh/Pytorch_DANet 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
mindspore-courses/External-Attention-MindSpore mindsporeSyntology: not harvested 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

7 samples harvested: 5 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; 0 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.

5ran
2unverified

Licence: 5 of the 7 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 junfu1115/DANet. “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.

junfu1115/DANet official repository 7 samples, 5 ran (0 instrument-failed) · 2 unverified
get_city_pairs encoding/datasets/cityscapes_v0.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 encoding/datasets/cityscapes.py ran MIT recorded; this copy not marked cleared · pointer only · ba3e7aabcdfce646 · report fixture: signature folder:str/0/str, split:str/0/str · returned tuple · level recorded 2026-09-25
rename_weight_for_head experiments/segmentation/model_mapping.py ran MIT recorded; this copy not marked cleared · pointer only · eb69f67b45ca28a7 · report fixture: signature weights:dict/0/? · returned OrderedDict · level recorded 2026-09-25
short_hash in 15 papers encoding/models/model_store.py ran MIT recorded; this copy not marked cleared · pointer only · e8e7fc06d9a54bbc · report fixture: signature name:str/0/str · returned str · level recorded 2026-09-25
test_batchify_fn encoding/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 encoding/models/deepten.py unverified MIT (permissive) · d8fa6abe733ae073 · report
get_deepten_resnet50_minc encoding/models/deepten.py unverified MIT (permissive) · a67af4c02a68b8dd · report

Tasks

Scene SegmentationSegmentationSemantic SegmentationThermal Image Segmentation

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Segmentation BDD100K val DANet mIoU 62.8 #5 of 24 Archive leaderboard report
Semantic Segmentation COCO-Stuff test DANet (ResNet-101) mIoU 39.7% #14 of 21 Archive leaderboard report
Semantic Segmentation Cityscapes test DANet (ResNet-101) Mean IoU (class) 81.5% #40 of 105 Archive leaderboard report
Semantic Segmentation DADA-seg DANet mIoU 22.24 #17 of 28 Archive leaderboard report
Semantic Segmentation DensePASS DANet (ResNet-101) mIoU 28.5% #30 of 36 Archive leaderboard report
Semantic Segmentation PASCAL Context DANet (ResNet-101) mIoU 52.6 #47 of 66 Archive leaderboard report
Semantic Segmentation PASCAL VOC 2012 test DANet (ResNet-101) Mean IoU 82.6% #25 of 51 Archive leaderboard report
Semantic Segmentation Trans10K DANet GFLOPs 198.00 #6 of 15 Archive leaderboard report
Semantic Segmentation Trans10K DANet mIoU 68.81% #6 of 15 Archive leaderboard report
Thermal Image Segmentation MFN Dataset DANet mIOU 41.3 #53 of 55 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

Introduced by this paper: DANet

1x1 ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionDANetFCNGlobal 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