CA-GAN: Weakly Supervised Color Aware GAN for Controllable Makeup Transfer

Robin Kips, Pietro Gori, Matthieu Perrot, Isabelle BlocharXiv 2020

Abstract

CA-GAN is a novel generative adversarial network designed for makeup style transfer that provides explicit and continuous control over makeup color. Unlike previous models that implicitly transfer styles from reference images, CA-GAN utilizes weakly supervised learning and a background consistency loss to modify specific facial features like lips and eyes accurately. By training on unpaired, unlabeled data and employing a robust color estimator, the model achieves high-fidelity results without the need for expensive paired datasets. Experimental results demonstrate superior performance in color accuracy and skin tone preservation compared to existing state-of-the-art methods.

Introduction

Existing makeup style transfer models, such as BeautyGAN, typically perform image synthesis by implicitly extracting a style from a reference image and applying it to a target face. While effective for general style replication, these models lack explicit control, preventing users from fine-tuning specific shades or matching real-world cosmetic products. Furthermore, training controllable models often requires paired datasets—images of the same person in identical poses with and without makeup—which are difficult and expensive to collect.

CA-GAN (Color Aware GAN) addresses these challenges by providing a controllable, continuous color-aware makeup transfer system. It operates on unpaired, unlabeled images, making it highly scalable and practical for virtual try-on applications.

Methodology

The CA-GAN architecture focuses on local facial regions, specifically the lips and eyes, to ensure high-precision transfer.

Weakly Supervised Learning

To eliminate the need for manual color labels, the authors implement a two-stage weak supervision approach. First, a Weak Color Extractor uses dlib facial landmarks and median pixel values to generate initial, albeit noisy, color labels. Second, a Learned Color Estimator (integrated into the GAN's discriminator) is trained on these labels. Over time, the discriminator learns to filter out the noise, becoming a more robust color estimator than the original heuristic.

The CA-GAN pipeline processes full portraits into local crops for targeted makeup application.

Optimization and Loss Functions

The network is optimized using several specialized loss functions:

  • Color Regression Loss ($mse-lab$): Calculated in the CIE Lab* color space, this ensures the generated makeup matches the target color condition. This perceptually uniform space is superior to RGB for aligning with human color perception.
  • Background Consistency Loss: This novel loss explicitly penalizes changes to the skin tone within the local crops, ensuring that only the target feature (e.g., lips or eyes) is modified.
  • Cycle Consistency Loss: Utilizing Multiscale Structural Similarity (MSSIM), this loss preserves the underlying facial structure across the unpaired training data.

Experimental Results

The model was evaluated using a new Social Media Dataset of 5,000 images and a controlled Lipstick Dataset featuring 100 panelists.

Controllability and Accuracy

CA-GAN demonstrates the ability to continuously vary makeup color while maintaining facial identity and background consistency.

Demonstration of continuous and controllable color transfer for eyeshadow using CA-GAN.

Quantitative results show that CA-GAN outperforms BeautyGAN in perceptual distance. On the Lipstick Dataset, CA-GAN achieved a 1-MSSIM score of 0.283, significantly better than BeautyGAN's 0.371. The use of the Lab* color space reduced makeup color error ($\Delta E$) from 25.82 (RGB) to 9.62.

Skin Tone Preservation

A key advantage of CA-GAN is its ability to disentangle makeup color from the subject's skin tone. The background consistency loss reduced skin color error ($\Delta E$) from 10.18 to 6.05, preventing the "color bleeding" often seen in baseline models where the reference subject's skin tone is incorrectly transferred alongside the makeup.

Conclusion

CA-GAN provides a robust framework for controllable makeup transfer using weak supervision. By focusing on local crops and perceptual color spaces, it achieves high accuracy without manual labeling. Future work will explore handling multi-color gradients and controlling for makeup finish (e.g., matte vs. glossy) to further enhance the realism of virtual try-ons.

Summary updated

BibTeX
@misc{kips2020ca,
  author = {Robin Kips and Pietro Gori and Matthieu Perrot and Isabelle Bloch},
  title = {{CA-GAN: Weakly Supervised Color Aware GAN for Controllable Makeup Transfer}},
  year = {2020},
  eprint = {2008.10298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.10298},
}
Figure