systemerrorwang/white-box-cartoonization

Official tensorflow implementation for CVPR2020 paper “Learning to Cartoonize Using White-box Cartoon Representations”

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Added to GitGenius on September 17th, 2026
Created on March 16th, 2020
Open Issues & Pull Requests: 72 (+0)
GitHub issues: Enabled
Number of forks: 735
Total Stargazers: 4,000 (+0)
Total Subscribers: 72 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 1637.0 days
Mean response time: 1637.0 days
90th percentile: 1637.0 days
Tracked items: 1

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

White-box Cartoonization is a deep learning model that transforms photographs into cartoon-style images using TensorFlow.

The tool addresses the problem of converting realistic images into cartoon representations while preserving visual structure and content. It works by learning white-box cartoon representations—explicit decompositions of cartoon images into surface color, edge, and texture components—rather than treating cartoonization as a black-box end-to-end transformation. This interpretable approach allows the model to understand and reproduce the key visual characteristics that define cartoon aesthetics across different image types including scenery, food, indoor scenes, and people.

Developers should choose this tool if they need to cartoonize general photographs or want to understand how cartoon style transfer can be decomposed into explicit visual components. The project suits applications ranging from batch image processing to interactive systems, with Docker support available for deployment without local dependency management. The README indicates that an improved method specifically for facial images is available in a separate repository, suggesting this general implementation may be less optimized for portrait work compared to that specialized variant.

The project provides inference code ready to use with pretrained weights, though the training code is noted as cleaned from a production environment and untested, with potential minor issues. Docker support is available with a base image supporting both standard Linux platforms and Apple Silicon through emulation. The README acknowledges that training datasets cannot be provided due to copyright restrictions but offers guidance on dataset preparation using film sources and face detection techniques. Pretrained weights for the VGG-19 backbone model are linked externally, and the project references an online demo implementation created by community members.