Towards Purely Unsupervised Disentanglement of Appearance and Shape for Person Images Generation

Hongtao Yang, Tong Zhang, Wenbing Huang, Xuming He, Fatih Porikli

Introduction

Generating high-quality images of people—such as transferring a specific outfit from one image to a person in a different pose—is a complex task in computer vision. It requires the model to effectively disentangle two primary factors: appearance (the textures, colors, and patterns of clothing) and shape (the body structure, pose, and even hair style).

Traditionally, this problem has been addressed through "weakly-supervised" methods that rely on external annotations like human skeletons or joint heatmaps. While effective, these methods are labor-intensive and often result in "stiff" generations that fail to capture fluid details like the drape of a dress or the volume of a hairstyle. This paper proposes a novel, data-driven framework for purely unsupervised disentanglement, achieving results that rival or surpass traditional supervised techniques.

Unsupervised Disentanglement Framework

The core innovation of this research is the move away from fixed, manual annotations toward a learned, data-driven representation of shape and appearance. By using only raw, unpaired images, the model learns to extract these features independently.

Comparison of weakly-supervised vs. unsupervised person image generation.

The proposed architecture consists of four primary modules:

  1. Shape Encoder ($E_s$): Instead of relying on a static stick figure, this encoder learns to generate 14 adaptive masks corresponding to different body parts. These masks refine themselves during training to match the actual contours of the subject.
  2. Appearance Encoder ($E_a$): This module utilizes the learned shape masks to "attend" to specific regions of the source image, ensuring it captures clean appearance features while filtering out background noise.
  3. Image Decoder ($D_I$): The decoder synthesizes a new image by fusing the appearance features from one source with the shape masks from another.
  4. Feature Classifier ($C_f$): A discriminator used in adversarial training to ensure that shape and appearance information remain strictly independent, preventing "leakage" between the two representations.

Training Strategy

To achieve stable training without ground-truth labels, the authors employ a three-pronged loss strategy:

  • Reconstruction Loss: A VGG-based perceptual loss ensures the model can accurately rebuild an image from its own disentangled components.
  • Feature Adversarial Loss: This forces the distributions of shape and appearance to be independent, ensuring the shape encoder doesn't accidentally capture color information and vice versa.
  • Color Consistency Loss: This regularization term ensures the generated image maintains the color statistics (mean and variance) of the original appearance source.

Experimental Results

The framework was evaluated on the DeepFashion and Market1501 benchmarks. On DeepFashion, the unsupervised method achieved a Structural Similarity (SSIM) score of 0.844, notably higher than the weakly-supervised VUnet (0.786) and the supervised PG2 (0.762).

Qualitatively, the model excels at preserving fine details. Because the shape representation is learned from data rather than fixed to a skeleton, it can capture "soft" features like complex hairstyles and the specific way a garment hangs, which are often lost in traditional methods.

Conclusion and Limitations

While the authors describe the method as "purely unsupervised," they note that the shape encoder is initialized with weights from a pre-trained OpenPose network to ensure training stability. Despite this dependency, the model demonstrates that data-driven shapes are superior to manual skeletons for generating realistic person images. Future work may involve integrating more advanced GAN architectures, such as StyleGAN, to further enhance photorealism.

Summary updated

BibTeX
@inproceedings{yang2020towards,
  author = {Hongtao Yang and Tong Zhang and Wenbing Huang and Xuming He and Fatih Porikli},
  title = {{Towards Purely Unsupervised Disentanglement of Appearance and Shape for Person Images Generation}},
  booktitle = {HUMA @ ACM Multimedia},
  year = {2020},
  url = {https://openreview.net/forum?id=UGTfRtTUrT},
}
Figure