Spatially Constrained GAN for Face and Fashion Synthesis

Songyao Jiang, Hongfu Liu, Yue Wu, Yun Fu · DOI

Abstract

Image generation has raised tremendous attention in both academic and industrial areas, especially for the conditional and target-oriented image generation, such as criminal portrait and fashion design. Although the current studies have achieved preliminary results along this direction, they always focus on class labels as the condition where spatial contents are randomly generated from latent vectors. Edge details are usually blurred since spatial information is difficult to preserve. In light of this, we propose a novel Spatially Constrained Generative Adversarial Network (SCGAN), which decouples the spatial constraints from the latent vector and makes these constraints feasible as additional controllable signals. To enhance the spatial controllability, a generator network is specially designed to take a semantic segmentation, a latent vector and an attribute-level label as inputs step by step. Besides, a segmentor network is constructed to impose spatial constraints on the generator. Experimentally, we provide both visual and quantitative results on CelebA and DeepFashion datasets, and demonstrate that the proposed SCGAN is very effective in controlling the spatial contents as well as generating high-quality images.

Introduction

Generating realistic images of faces or clothing requires precise control over spatial layout and specific attributes. For instance, forensic applications require placing facial features in exact locations, while fashion design necessitates specific garment structures. Existing methods often fall short: Conditional GANs (cGANs) typically rely on global labels, leading to a lack of spatial control and blurred boundaries. Conversely, image-to-image translation models like Pix2Pix or CycleGAN are often too deterministic, failing to capture the "one-to-many" diversity inherent in real-world data where multiple appearances can share the same spatial geometry.

Methodology

The Spatially Constrained Generative Adversarial Network (SCGAN) addresses these issues by decoupling the synthesis process into three dimensions: spatial layout, specific attributes, and latent variations.

The SCGAN Architecture

The framework consists of three primary components:

  1. Generator ($G$): Unlike standard architectures, the SCGAN generator processes inputs sequentially. It first takes a semantic segmentation map to define the spatial "skeleton." Next, it injects a latent vector ($z$) for unregulated details like texture. Finally, attribute labels (e.g., hair color) are applied to refine the output.
  2. Discriminator ($D$): Equipped with an auxiliary classifier, the discriminator evaluates both the realism of the image and the presence of requested attributes.
  3. Segmentor ($S$): This component provides the critical "spatial loss." By predicting the segmentation map of generated images, it forces the generator to adhere strictly to the input spatial constraints.
Figure 1: Face synthesis variations demonstrating the model's ability to maintain spatial consistency while varying latent textures and attributes.

Experiments and Results

The model was evaluated on the CelebA and DeepFashion datasets. For CelebA, semantic masks were generated using Dlib landmarks. For DeepFashion, a subset with 18-class color attributes and semantic segmentations was utilized.

Quantitative Performance

SCGAN demonstrated superior performance compared to state-of-the-art models:

  • Realism: On CelebA, SCGAN achieved a Frechet Inception Distance (FID) of 10.2, significantly lower than SPADE (18.5) and Pix2Pix (20.4).
  • Spatial Accuracy: The model reached a Mean Intersection over Union (mIoU) of 79.11% on CelebA, indicating high fidelity to input masks.

Qualitative Analysis

The sequential input method (Segmentation $\rightarrow$ Latent $\rightarrow$ Attribute) proved essential for maintaining coherence between foreground and background. The model also supports smooth interpolation between segmentation maps, allowing for transitions like "NoSmile to Smile" while preserving identity.

Figure 2: Fashion synthesis results on the DeepFashion dataset, showing high-quality garment generation under spatial constraints.

Conclusion

SCGAN provides a robust framework for controllable image synthesis by effectively decoupling spatial and attribute constraints. While the model excels at standard resolutions, future work could explore scaling to high-resolution outputs and incorporating explicit identity-preserving losses for more specialized forensic applications.

Summary updated

BibTeX
@inproceedings{jiang2021spatially,
  author = {Songyao Jiang and Hongfu Liu and Yue Wu and Yun Fu},
  title = {{Spatially Constrained GAN for Face and Fashion Synthesis}},
  booktitle = {FG},
  year = {2021},
  doi = {10.1109/fg52635.2021.9666991},
}
Figure