CariGAN: Caricature generation through weakly paired adversarial learning

Wenbin Li, Wei Xiong, Haofu Liao, Jing Huo, Yang Gao, Jiebo Luo

TL;DR

This paper introduces CariGAN, a novel Generative Adversarial Network (GAN) framework for generating caricatures from face images. It tackles the challenge of creating plausible, identity-preserving, and exaggerated caricatures using a "weakly paired" training approach and a new image fusion mechanism, significantly outperforming existing methods.

What Problem Does This Paper Address?

Generating realistic and engaging caricatures is a challenging task. Traditional methods often rely on low-level geometric transformations, resulting in deterministic outputs that lack diversity and richness in style and content. While recent GAN-based approaches have shown promise in image-to-image translation, directly applying them to caricature generation yields unsatisfactory results. This is partly due to the difficulty in obtaining pixel-wise paired training data (where a specific input face image directly corresponds to a specific caricature output), as a single person can have many plausible caricatures with varying exaggerations and styles. Furthermore, existing GANs often struggle to balance identity preservation, plausible exaggeration, and stylistic diversity, sometimes leading to blurry outputs or a lack of distinct features.

Methods

CariGAN addresses these challenges through several key innovations:

  • Weakly Paired Training: Instead of requiring exact pixel-to-pixel correspondence, CariGAN uses "weakly paired" data. This means an input face image and its corresponding ground-truth caricature share the same identity but can have different poses and levels of exaggeration. This setting is more realistic for caricature generation.
  • Facial Mask as Condition: To guide the generation of reasonable exaggerations and control facial deformation, a binary facial mask derived from 17 facial landmarks is used as an additional input to both the generator and discriminator. This mask encodes information about facial part exaggeration and viewpoint.
  • Image Fusion Mechanism: To encourage the model to focus on important local facial regions and improve detail, an image fusion mechanism is introduced. This mechanism combines parts of the ground-truth caricature with the generated caricature to create a "fused" image, which is then used to train the discriminator. This helps the generator pay more attention to key facial features like eyes and mouth.
  • Diversity Loss: To combat the "mode collapse" problem in GANs (where different inputs lead to similar outputs), a diversity loss is proposed. This loss encourages the difference between caricatures generated from different random noise inputs to be a linear function of the difference between those noises, explicitly controlling stylistic diversity.

Datasets

The experiments are conducted on the WebCaricature dataset, which contains 5974 photograph and 6042 caricature images of 252 celebrities. For training, 200 celebrities' images are used, and the remaining 52 are reserved for testing. The dataset is pre-processed by aligning facial landmarks, resizing images to 256x256, and creating "weak pairs" for training.

Key Insights and Ideas

  • Weak Pairing is Crucial: The paper highlights that strict pixel-wise pairing is impractical for caricature generation. Adopting a weakly paired setting is essential for learning realistic transformations.
  • Facial Masks Guide Exaggeration: Using facial landmarks as a mask provides a powerful way to control and guide the degree and type of exaggeration in generated caricatures, disentangling it from other attributes.
  • Focusing on Local Regions Matters: The image fusion mechanism demonstrates that explicitly guiding the model to focus on key facial parts, rather than just global appearance, leads to more realistic and detailed caricatures.
  • Diversity Loss Solves Mode Collapse: The proposed diversity loss effectively addresses the issue of GANs producing similar outputs for different inputs, leading to more varied and interesting caricatures.

Key Results

  • Qualitative Improvements: CariGAN generates caricatures that are sharper, more plausible, and exhibit better exaggeration compared to baseline methods like Pix2Pix, BicycleGAN, and PG2. The generated caricatures are well-aligned with the target facial landmarks and maintain the identity of the input face.
  • Quantitative Evaluation (User Study): In a user study, CariGAN achieved the highest average perceptual scores across plausibility, identity preservation, and exaggeration, outperforming all baselines. Specifically, it scored 5.45 for plausibility, 5.34 for identity, and 6.18 for exaggeration, with an overall average of 5.66.
  • Ablation Study: The ablation study showed that incorporating the facial mask, image fusion, and diversity loss sequentially led to significant improvements in caricature quality.

Limitations and Future Work

  • Resolution: The current model generates caricatures at a resolution of 256x256. The authors plan to extend the model to generate higher-resolution caricatures in the future.
  • Further Performance Improvement: While CariGAN performs well, the authors aim to further improve performance across all four key aspects (identity preservation, plausibility, exaggeration, and diversity).

Summary updated

BibTeX
@article{li2020carigan,
  author = {Wenbin Li and Wei Xiong and Haofu Liao and Jing Huo and Yang Gao and Jiebo Luo},
  title = {{CariGAN: Caricature generation through weakly paired adversarial learning}},
  journal = {Neural Networks},
  year = {2020},
  doi = {10.1016/j.neunet.2020.08.011},
}
Figure