Text to Image Generation with Semantic-Spatial Aware GAN

Kai Hu, Wentong Liao, Michael Ying Yang, Bodo Rosenhahn
4/1/2021
cs.CVcs.LG

Official code: wtliao/text2image (187 stars, Python, last commit 2022-03-24).

Abstract

Text-to-image synthesis (T2I) aims to generate photo-realistic images which are semantically consistent with the text descriptions. Existing methods are usually built upon conditional generative adversarial networks (GANs) and initialize an image from noise with sentence embedding, and then refine the features with fine-grained word embedding iteratively.

Show full abstract

A close inspection of their generated images reveals a major limitation: even though the generated image holistically matches the description, individual image regions or parts of somethings are often not recognizable or consistent with words in the sentence, e.g. "a white crown". To address this problem, we propose a novel framework Semantic-Spatial Aware GAN for synthesizing images from input text. Concretely, we introduce a simple and effective Semantic-Spatial Aware block, which (1) learns semantic-adaptive transformation conditioned on text to effectively fuse text features and image features, and (2) learns a semantic mask in a weakly-supervised way that depends on the current text-image fusion process in order to guide the transformation spatially. Experiments on the challenging COCO and CUB bird datasets demonstrate the advantage of our method over the recent state-of-the-art approaches, regarding both visual fidelity and alignment with input text description.

View on arXivView PDF

Code Implementations(1)

wtliao/text2imageOfficial100%

Text to Image Generation with Semantic-Spatial Aware GAN

18732PythonApr 1, 20214 years ago

Similar Papers

Cite this paper

@article{hu2021text,
  title  = {Text to Image Generation with Semantic-Spatial Aware GAN},
  author = {Kai Hu and Wentong Liao and Michael Ying Yang and Bodo Rosenhahn},
  year   = {2021},
  eprint = {2104.00567},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.00567}
}

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

Discussion