Image Synthesis via Semantic Composition

Yi Wang, Lu Qi, Ying-Cong Chen, Xiangyu Zhang, Jiaya Jia

Abstract

Semantic image synthesis involves generating photorealistic images from provided semantic layouts. Existing approaches often struggle to capture the inherent appearance correlations between different semantic regions, such as the visual consistency between left and right eyes in a portrait. This paper introduces the Semantic-Composition GAN (SC-GAN), which explicitly models these relationships by encoding semantic labels into continuous, correlated vectors. By decoupling the synthesis process into a Semantic Vector Generator (SVG) and a Semantic Render Generator (SRG), the model achieves high-quality results with reduced computational overhead. SC-GAN outperforms state-of-the-art methods like SPADE and CC-FPSE across multiple benchmarks, including CelebAMask-HQ and Cityscapes.

Introduction

The goal of semantic image synthesis is to perform the "inverse" of semantic segmentation: transforming a labeled map into a realistic image. A significant challenge in this field is the complexity of object distributions and the need for visual consistency across spatially distant but semantically related regions.

Examples of semantic layouts and their corresponding synthesized images across various domains, including faces and urban scenes.

Earlier methods often treated semantic labels as independent entities, leading to inconsistencies. While spatially-variant convolutions were proposed to address this, they typically incurred high computational costs. SC-GAN addresses these issues by learning a shared representation that captures appearance correlations, ensuring that regions like "skin" and "nose" or "left eye" and "right eye" maintain visual harmony.

Methodology: Semantic-Composition GAN

The SC-GAN architecture is divided into two primary components: the Semantic Vector Generator (SVG) and the Semantic Render Generator (SRG).

The SC-GAN architecture, illustrating the flow from semantic layouts through the SVG and SRG to the final synthesis result.

Semantic Vector Generator (SVG)

The SVG transforms discrete semantic layouts into a continuous feature map of semantic vectors. These vectors are regularized to ensure that semantically similar regions—those expected to have similar appearances—are mapped to similar vector representations. This allows the model to leverage shared visual characteristics across the image, such as matching textures for bilateral features.

Semantic Render Generator (SRG)

The SRG acts as the rendering engine, utilizing the semantic vectors to parameterize two key operations:

  1. Spatially Conditional Convolution (SCC): Instead of static filters, SCC employs a linear combination of "expert" kernel candidates. The weights for these combinations are derived from the semantic vectors at each pixel location.
  2. Spatially Conditional Normalization (SCN): This operation adapts normalization statistics based on the semantic vectors, further refining the local appearance.

By composing operations from a small set of learnable expert weights, SC-GAN achieves spatially-variant processing with a fraction of the memory overhead required by methods that generate unique weights for every pixel.

Experimental Results

The model was evaluated on four major benchmarks: CelebAMask-HQ, Cityscapes, ADE20K, and COCO-Stuff.

Quantitative Performance

SC-GAN demonstrated significant improvements in image quality and semantic accuracy. On the CelebAMask-HQ dataset, it achieved a Fréchet Inception Distance (FID) of 19.2, a substantial improvement over SPADE's 42.2. Furthermore, the model showed superior Mean Intersection over Union (mIoU), indicating that the generated images align more accurately with the input masks.

Efficiency and Human Preference

Despite its performance, SC-GAN is highly efficient, utilizing 66.2M parameters compared to the 138.6M parameters of CC-FPSE. In user studies, participants preferred SC-GAN's results over baseline methods by a substantial margin, with a 76% preference rate over SPADE on face datasets.

Conclusion

SC-GAN introduces a powerful paradigm for image synthesis by focusing on semantic composition and appearance correlation. By learning to relate different semantic labels visually, the model produces more consistent and realistic images while maintaining computational efficiency. Future work may involve addressing geometric complexities in 3D scenes and mitigating symbiotic biases learned from training data.

Summary updated

BibTeX
@inproceedings{wang2021image,
  author = {Yi Wang and Lu Qi and Ying-Cong Chen and Xiangyu Zhang and Jiaya Jia},
  title = {{Image Synthesis via Semantic Composition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01349},
}
Figure