← all repositories
mnicnc404/CartoonGan-tensorflow

CartoonGAN resurrected in TensorFlow 2.0 Alpha, now archived

This repo implements the 2018 CartoonGAN paper in TensorFlow 2.0 Alpha, letting you train custom photo-to-anime models or run pretrained Shinkai and Paprika styles in a browser demo.

CartoonGan-tensorflow
Not currently ranked — collecting fresh signals.
star history

What it does

This repository is a ground-up implementation of CartoonGAN, the CVPR 2018 network that transforms real-world photographs into cartoon or anime imagery. It provides training scripts, inference pipelines, and two ready-to-use pretrained checkpoints that apply Shinkai and Paprika artistic styles. The project also exports trained generators to TensorFlow SavedModel and TensorFlow.js formats for browser or runtime inference.

The interesting bit

The authors grafted a lightweight generator inspired by ShuffleNet V2 onto the original architecture, giving up a little fidelity for faster inference. They also wrapped the entire research paper into a practical kit: live TensorBoard monitoring, edge-smoothing preprocessing, and a one-click web demo. It is essentially a reference implementation frozen in time.

Key highlights

  • Ships both the original CartoonGAN generator and a --light variant tuned for speed.
  • Includes pretrained light_paprika and light_shinkai checkpoints (~7MB) plus exported SavedModels (~11MB).
  • Exports trained models to TensorFlow.js and SavedModel without extra scaffolding.
  • Integrates TensorBoard to visualize losses and generated samples during training.
  • Provides a browser demo and a Google Colab notebook for inference without setup.

Caveats

  • Explicitly unmaintained; the authors warn that reproducing results requires following the exact environment and training instructions.
  • Built against TensorFlow 2.0 Alpha, so dependency conflicts with modern TF/Keras are likely.
  • Requires manual dataset curation, including a smoothed-edge variant of target cartoon images, and GPU memory limits dictate batch-size tuning.

Verdict

A solid choice for researchers or hobbyists who want a complete, reproducible CartoonGAN reference. Avoid it if you need an actively maintained library or a modern, plug-and-play style-transfer API.

Frequently asked

What is mnicnc404/CartoonGan-tensorflow?
This repo implements the 2018 CartoonGAN paper in TensorFlow 2.0 Alpha, letting you train custom photo-to-anime models or run pretrained Shinkai and Paprika styles in a browser demo.
Is CartoonGan-tensorflow open source?
Yes — mnicnc404/CartoonGan-tensorflow is open source, released under the Apache-2.0 license.
What language is CartoonGan-tensorflow written in?
mnicnc404/CartoonGan-tensorflow is primarily written in Python.
How popular is CartoonGan-tensorflow?
mnicnc404/CartoonGan-tensorflow has 936 stars on GitHub.
Where can I find CartoonGan-tensorflow?
mnicnc404/CartoonGan-tensorflow is on GitHub at https://github.com/mnicnc404/CartoonGan-tensorflow.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.