Dual Attention Network for Scene Segmentation

Jun Fu, Jing Liu, Haijie Tian, Yong Li, Yongjun Bao +2 more
9/9/2018
6,329 citations
cs.CV
transformer-attention

Official code: CASIA-IVA-Lab/DANet (2,465 stars, Python, MIT, last commit 2024-12-23).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

MIT

Dual Attention Network for Scene Segmentation (CVPR2019)

2,465479Python, CudaSep 11, 20181 years agoMIT

Similar Papers

Cite this paper

@article{fu2018dual,
  title  = {Dual Attention Network for Scene Segmentation},
  author = {Jun Fu and Jing Liu and Haijie Tian and Yong Li and Yongjun Bao and Zhiwei Fang and Hanqing Lu},
  year   = {2018},
  eprint = {1809.02983},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.02983}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1809.02983.svg)](https://codeofpaper.com/paper/1809.02983)

Discussion