Unpaired Cartoon Image Synthesis via Gated Cycle Mapping

Yifang Men, Yuan Yao, Miaomiao Cui, Zhouhui Lian, Xuansong Xie, Xian-Sheng Hua

Abstract

This paper introduces a novel framework for transforming real-world photos into cartoon images, handling both exaggerated anime portraits and realistic cartoon landscapes within a single, unified model. By employing a Gated Mapping Unit (GMU) to generate category-specific style codes, the proposed Gated Cycle Mapping achieves significant geometric transformations and texture stylization without paired training data.

Introduction

The "photo-to-cartoon" (P2C) task typically splits into two distinct domains: scene cartoonization, which focuses on texture and edge refinement, and portrait cartoonization, which requires significant geometric deformation (e.g., large eyes). Existing methods are often specialized for one domain and fail in the other. Furthermore, most models lack user controllability, offering a "one-style-fits-all" solution. This work addresses these gaps by proposing a unified model capable of high-quality, exemplar-guided synthesis for both portraits and scenes.

Methodology: Gated Cycle Mapping

The core innovation is the Gated Cycle Mapping structure, which utilizes a single generator $G$ and a Gated Style Encoder ($E_{gs}$).

Gated Mapping Unit (GMU)

The GMU serves as the central controller of the encoder. It classifies input images into four categories: Photo/Cartoon $\times$ Portrait/Scene. Using a gating mechanism, it selects domain-specific or group-specific layers to produce a category-specific style code. This allows the model to share general "cartoon" knowledge while specializing in the distinct requirements of faces versus landscapes.

The proposed framework architecture featuring the Gated Mapping Unit (GMU) and Gated Style Encoder.

Style Injection and Cycle Consistency

The generated style code is injected into the generator's decoder via Adaptive Instance Normalization (AdaIN). This enables exemplar-based stylization, where a user provides a reference cartoon image to guide the output's color, line weight, and geometric features. To ensure stable training without paired data, the model enforces category-specific cycle consistency (e.g., portrait-to-portrait), preventing illogical mappings between disparate categories.

Datasets

The model was trained and validated on:

  • Selfie2anime: 3,400 selfie photos and 3,400 anime faces for portrait tasks.
  • Scene2cartoon: A new dataset of 5,100 landscape photos and 5,100 animation scenes.
  • Auxiliary Video Dataset: Cartoon portraits with diverse expressions to enhance temporal stability and expression handling.

Experimental Results

The proposed method demonstrates superior performance over state-of-the-art models like CycleGAN and U-GAT-IT.

Qualitative results showing the model's ability to synthesize both portraits (left) and scenes (right) based on various exemplars.

Quantitative and Qualitative Analysis

On the selfie2anime benchmark, the model achieved a Fréchet Inception Distance (FID) of 79.74, outperforming CouncilGAN (89.51). Qualitatively, the model successfully produces the "big eye" effect for portraits while maintaining the structural integrity of complex landscapes. The gating mechanism effectively prevents the application of facial logic to scenes, a common failure mode in unified models.

Conclusion

Gated Cycle Mapping provides a robust, unified solution for unpaired photo-to-cartoon translation. By leveraging category-specific style codes and a gated architecture, the model achieves high-quality geometric and textural transformations with significant user controllability. Future work may explore 3D-aware deformations and reducing data-driven biases in character features.

Summary updated

BibTeX
@inproceedings{men2022unpaired,
  author = {Yifang Men and Yuan Yao and Miaomiao Cui and Zhouhui Lian and Xuansong Xie and Xian-Sheng Hua},
  title = {{Unpaired Cartoon Image Synthesis via Gated Cycle Mapping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00349},
}
Figure