Unsupervised Contrastive Photo-to-Caricature Translation based on Auto-distortion

Yuhe Ding, Xin Ma, Mandi Luo, Aihua Zheng, Ran He

Abstract

This paper introduces a novel unsupervised framework for transforming photos into caricatures by decoupling the task into two distinct stages: style rendering and geometric deformation. By leveraging a new contrastive style loss and an "auto-distortion" module that predicts feature exaggerations without manual landmarks, the model produces hand-drawn-quality caricatures that preserve identity better than previous state-of-the-art methods.

Introduction

Creating a caricature presents a dual challenge: applying an artistic texture (style) and exaggerating facial features (geometry) while maintaining the subject's recognizability. Existing methods often struggle with two primary issues:

  1. Style Artifacts: Many models rely on Adaptive Instance Normalization (AdaIN), which assumes image channels are uncorrelated. This often results in "messy" textures or visual glitches because global image structure is ignored.
  2. Supervision Dependency: Most deformation models require external guidance, such as 2D landmarks or 3D meshes, to identify which facial parts to stretch. These landmarks are difficult to obtain accurately for caricatures in unconstrained environments.

To address these, the authors propose a system that learns both style and exaggeration in a completely unpaired and unsupervised fashion.

Methodology

The architecture consists of a symmetrical encoder-decoder supporting bidirectional translation ($Photo \leftrightarrow Caricature$). The process is split into a Style Rendering stage and a Deformation stage.

Overview of the proposed architecture, highlighting the Style Rendering and Deformation stages.

Contrastive Style Loss

To improve texture quality, the authors move beyond simple image-to-image translation by proposing a contrastive style loss based on Gram matrices. The goal is to pull the style of the "rendered photo" closer to the style of actual caricatures while pushing it further away from the original photo's texture. This forces the model to learn the nuances of artistic strokes and pencil textures rather than performing a simple color shift.

Distortion Prediction Module (DPM)

Instead of requiring pre-defined landmarks, the authors utilize a DPM to achieve "auto-distortion." The module predicts displacement vectors for fixed control points on the face, which are then used with Thin Plate Spline (TPS) interpolation to warp the image. Because the model is trained with an adversarial loss, the DPM learns to exaggerate features in a way that mimics human artists without explicit anatomical instructions.

Dataset

The model was trained on the WebCaricature dataset, comprising 6,042 caricatures and 5,974 photos across 252 distinct identities. The data is used in an unpaired fashion, meaning the model never sees a ground-truth photo-caricature pair during training.

Key Results and Insights

The researchers compared their model against several established frameworks, including CycleGAN, UNIT, MUNIT, and WarpGAN.

Qualitative comparison of the proposed method against state-of-the-art translation frameworks.
  • User Study: In a blind test with 29 subjects, the proposed method was preferred 51.05% of the time, more than doubling the scores of its closest competitors (WarpGAN at 24.56% and UNIT at 24.39%).
  • Face Recognition: Using the SphereFace model, the proposed method achieved a 34.56% Rank-1 accuracy in identifying the person, slightly beating WarpGAN (34.18%) and significantly outperforming actual hand-drawn caricatures (8.46%).
  • Identity Preservation: By using a weight-sharing strategy in the encoders and decoders rather than AdaIN, the model maintains global information better, leading to fewer artifacts and more coherent identity consistency.
  • Diversity: By adding random Gaussian noise to the DPM, the model can generate multiple different exaggerations for the same input photo.

Conclusion

While the model excels at photo-to-caricature translation, the authors note that the reverse process—caricature-to-photo—is significantly more difficult. Due to the extremely irregular shapes of caricatures, the DPM struggles to "un-warp" them back into perfectly natural human faces. Future work will focus on refining the DPM to handle these highly irregular source geometries more effectively.

Summary updated

BibTeX
@inproceedings{ding2020unsupervised,
  author = {Yuhe Ding and Xin Ma and Mandi Luo and Aihua Zheng and Ran He},
  title = {{Unsupervised Contrastive Photo-to-Caricature Translation based on Auto-distortion}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412569},
}
Figure