Skip to main content
QUICK REVIEW

[Paper Review] SegAttnGAN: Text to Image Generation with Segmentation Attention

Yuchuan Gou, Qiancheng Wu|arXiv (Cornell University)|May 25, 2020
Generative Adversarial Networks and Image SynthesisComputer Science27 references6 citations
TL;DR

This paper proposes SegAttnGAN, a text-to-image generation model that integrates segmentation maps as spatial attention guidance to improve image realism and layout consistency. By leveraging both text and segmentation-based attention, the model achieves state-of-the-art Inception Scores of 4.84 on CUB and 3.52 on Oxford-102, with a self-attention variant generating masks end-to-end while maintaining high-quality outputs.

ABSTRACT

In this paper, we propose a novel generative network (SegAttnGAN) that utilizes additional segmentation information for the text-to-image synthesis task. As the segmentation data introduced to the model provides useful guidance on the generator training, the proposed model can generate images with better realism quality and higher quantitative measures compared with the previous state-of-art methods. We achieved Inception Score of 4.84 on the CUB dataset and 3.52 on the Oxford-102 dataset. Besides, we tested the self-attention SegAttnGAN which uses generated segmentation data instead of masks from datasets for attention and achieved similar high-quality results, suggesting that our model can be adapted for the text-to-image synthesis task.

Motivation & Objective

  • To address the issue of deformed object shapes and unrealistic image layouts in text-to-image synthesis.
  • To improve image realism and semantic consistency by incorporating segmentation maps as spatial guidance during GAN training.
  • To develop a self-attention variant that generates segmentation masks end-to-end, reducing dependency on ground-truth masks during inference.
  • To validate that segmentation-based attention enhances both visual quality and quantitative metrics in text-to-image generation.

Proposed method

  • Integrates segmentation maps as spatial attention maps in the generator to guide feature refinement and object layout learning.
  • Uses an LSTM-based text encoder to extract word-level and sentence-level features for conditional generation.
  • Applies a segmentation attention module that modulates feature maps using input segmentation masks via element-wise multiplication and residual connections.
  • Employs a self-attention generator to predict segmentation masks from noise and text, which are then used for image generation.
  • Combines conditional GAN training with multi-scale feature maps and attention mechanisms to improve fidelity and alignment.
  • Utilizes Inception Score and R-precision as evaluation metrics to assess image quality and text-image alignment.

Experimental results

Research questions

  • RQ1Can segmentation maps improve the realism and layout consistency of generated images in text-to-image synthesis?
  • RQ2How does the integration of segmentation-based spatial attention affect the quality and diversity of generated images?
  • RQ3Can a self-attention generator produce high-quality segmentation masks that effectively guide image generation without ground-truth masks?
  • RQ4Does the proposed method outperform existing state-of-the-art models in both quantitative metrics and visual quality?

Key findings

  • SegAttnGAN achieves an Inception Score of 4.84 on the CUB dataset, surpassing the baseline AttnGAN (4.36) and other SOTA methods.
  • On the Oxford-102 dataset, SegAttnGAN achieves an Inception Score of 3.52, outperforming all compared models.
  • The self-attention SegAttnGAN variant attains an Inception Score of 4.44 on CUB and 3.34 on Oxford-102, demonstrating strong performance without ground-truth segmentation during inference.
  • R-precision scores show that SegAttnGAN maintains strong text-image alignment, with 52.71% on CUB, comparable to the baseline AttnGAN (53.31%).
  • Applying the segmentation attention module to StackGAN++ boosts its Inception Score from 3.82 to 4.31, indicating broad compatibility and effectiveness.
  • Qualitative results confirm that segmentation maps effectively constrain object shapes, and the self-attention variant generates realistic images despite using predicted masks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.