Semantic Image Synthesis via Class-Adaptive Cross-Attention

Tomaso Fontanini, Claudio Ferrari, Giuseppe Lisanti, Massimo Bertozzi, Andrea Prati
8/30/2023
cs.CVcs.AI

Official code: TFonta/CA2SIS (3 stars, last commit 2024-04-17).

Abstract

In semantic image synthesis the state of the art is dominated by methods that use customized variants of the SPatially-Adaptive DE-normalization (SPADE) layers, which allow for good visual generation quality and editing versatility. By design, such layers learn pixel-wise modulation parameters to de-normalize the generator activations based on the semantic class each pixel belongs to. Thus, they tend to overlook global image statistics, ultimately leading to unconvincing local style editing and causing global inconsistencies such as color or illumination distribution shifts. Also, SPADE layers require the semantic segmentation mask for mapping styles in the generator, preventing shape manipulations without manual intervention. In response, we designed a novel architecture where cross-attention layers are used in place of SPADE for learning shape-style correlations and so conditioning the image generation process. Our model inherits the versatility of SPADE, at the same time obtaining state-of-the-art generation quality, as well as improved global and local style transfer. Code and models available at https://github.com/TFonta/CA2SIS.

View on arXivView PDF

Code Implementations(1)

TFonta/CA2SISOfficial100%
30Shell, PythonMar 28, 20232 years ago

Similar Papers

Cite this paper

@article{fontanini2023semantic,
  title  = {Semantic Image Synthesis via Class-Adaptive Cross-Attention},
  author = {Tomaso Fontanini and Claudio Ferrari and Giuseppe Lisanti and Massimo Bertozzi and Andrea Prati},
  year   = {2023},
  eprint = {2308.16071},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.16071v3}
}

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

Discussion