SARA: Controllable Makeup Transfer with Spatial Alignment and Region-Adaptive Normalization

Xiaojing Zhong, Xinyi Huang, Zhonghua Wu, Guosheng Lin, Qingyao Wu · DOI

TL;DR

This paper introduces SARA, a novel framework for controllable makeup transfer that tackles the challenge of misaligned facial poses between source and reference images. SARA achieves state-of-the-art results by employing a semantic-guided alignment module with unbalanced optimal transport and a region-adaptive normalization module to ensure fine-grained control and preserve identity.

What Problem Does This Paper Address?

Applying makeup virtually, known as makeup transfer, is a popular application with potential in areas like virtual try-on. The core challenge lies in transferring a desired makeup style from a reference image to a target face image while preserving the target's original identity. A significant hurdle is the frequent misalignment of facial poses between the source and reference images, which existing methods struggle to handle effectively. Many current approaches either require precise facial landmarks, rely on low-dimensional representations that lose detail, or suffer from "many-to-one" matching issues, leading to inaccurate or unnatural results, especially when dealing with different semantic regions of the face. This paper aims to bridge this gap by enabling controllable makeup transfer that is robust to pose variations and allows for fine-grained control over specific makeup elements.

Methods

SARA is built upon three key modules:

  1. Semantic-guided Alignment Module (SAM): This module addresses pose misalignment by explicitly constructing dense correspondences between the reference and source images. It leverages unbalanced optimal transport (UOT), a technique that can handle unequal distributions of "mass" (features) between the two images, making it suitable for differing poses. UOT helps to warp the reference image to align with the source's semantic map, preserving spatial context.
  2. Region-Adaptive Normalization Module (RAM): To compensate for potential feature loss during alignment and decouple shape from style, RAM extracts shape-independent style codes. These codes are then broadcast to corresponding regions of the target semantic map, allowing for adaptive normalization. This module dynamically combines warped style features with these shape-independent codes to enhance detail and sharpness.
  3. Makeup Fusion Module (MFM): This module progressively fuses the identity features of the source image with the modulated makeup styles. It uses learned scale and bias parameters from RAM to inject the makeup style into the identity features, ultimately generating the final, fine-grained makeup-transferred image.

Datasets

  • Makeup Transfer (MT) dataset: Used for training and testing, containing 2719 makeup images and 1115 non-makeup images with variations in poses and expressions.
  • M-wild dataset: Used to evaluate performance on facial images with complex backgrounds.

Key Insights and Ideas

  • Unbalanced Optimal Transport for Alignment: The paper highlights that standard optimal transport might struggle with unequal feature distributions in misaligned images. UOT proves to be a more robust solution for establishing dense correspondences in such scenarios.
  • Decoupling Shape and Style: RAM's approach of extracting shape-independent style codes and adaptively normalizing regions is crucial for achieving fine-grained control and mitigating feature loss.
  • Reversibility of Makeup Transfer: The paper demonstrates that the makeup transfer process can be reversed for makeup removal, showcasing the framework's versatility.
  • Pseudo Ground Truth Generation: The authors propose an improved method for generating pseudo ground truth using OT matching and histogram matching, which better preserves fine-grained makeup details compared to traditional TPS warping.

Key Results

  • Qualitative Results: SARA demonstrates superior performance in transferring eye shadow, lipstick, and blush, effectively handling pose misalignments and occlusions. It produces more natural and detailed results compared to state-of-the-art methods like PSGAN, SCGAN, EleGANt, and SSAT, especially in challenging cases with dramatic makeup styles or uneven skin tones.
  • Quantitative Results: User studies show that SARA achieves the highest scores for both transfer accuracy and image quality, outperforming existing methods on both aligned and misaligned test samples.

Limitations and Future Work

  • Limitations: The paper acknowledges that while UOT helps with feature alignment, it might still produce artifacts in cases of extreme semantic region mismatch. The effectiveness of the pseudo ground truth generation is also noted as a key factor, and its limitations might impact the final results.
  • Future Work: The paper suggests that the framework can be extended to handle more complex makeup styles and potentially be applied to other image translation tasks requiring robust alignment and fine-grained control. The authors also mention the potential for further improvements in the pseudo ground truth generation process.

Summary updated

BibTeX
@misc{zhong2023sara,
  author = {Xiaojing Zhong and Xinyi Huang and Zhonghua Wu and Guosheng Lin and Qingyao Wu},
  title = {{SARA: Controllable Makeup Transfer with Spatial Alignment and Region-Adaptive Normalization}},
  year = {2023},
  eprint = {2311.16828},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16828},
}
Figure