Dual Attention GANs for Semantic Image Synthesis

Hao Tang, Song Bai, Nicu Sebe
8/29/2020
cs.CVcs.AIcs.LG
transformer-attention

Official code: Ha0Tang/DAGAN (112 stars, Python, last commit 2023-02-18).

Abstract

In this paper, we focus on the semantic image synthesis task that aims at transferring semantic label maps to photo-realistic images. Existing methods lack effective semantic constraints to preserve the semantic information and ignore the structural correlations in both spatial and channel dimensions, leading to unsatisfactory blurry and artifact-prone results.

Show full abstract

To address these limitations, we propose a novel Dual Attention GAN (DAGAN) to synthesize photo-realistic and semantically-consistent images with fine details from the input layouts without imposing extra training overhead or modifying the network architectures of existing methods. We also propose two novel modules, i.e., position-wise Spatial Attention Module (SAM) and scale-wise Channel Attention Module (CAM), to capture semantic structure attention in spatial and channel dimensions, respectively. Specifically, SAM selectively correlates the pixels at each position by a spatial attention map, leading to pixels with the same semantic label being related to each other regardless of their spatial distances. Meanwhile, CAM selectively emphasizes the scale-wise features at each channel by a channel attention map, which integrates associated features among all channel maps regardless of their scales. We finally sum the outputs of SAM and CAM to further improve feature representation. Extensive experiments on four challenging datasets show that DAGAN achieves remarkably better results than state-of-the-art methods, while using fewer model parameters. The source code and trained models are available at https://github.com/Ha0Tang/DAGAN.

View on arXivView PDF

Code Implementations(1)

Ha0Tang/DAGANOfficial100%

[ACM MM 2020] Dual Attention GANs for Semantic Image Synthesis

11215Python, ShellAug 4, 20203 years agoNOASSERTION

Similar Papers

Cite this paper

@article{tang2020dual,
  title  = {Dual Attention GANs for Semantic Image Synthesis},
  author = {Hao Tang and Song Bai and Nicu Sebe},
  year   = {2020},
  eprint = {2008.13024},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.13024}
}

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/2008.13024.svg)](https://codeofpaper.com/paper/2008.13024)

Discussion