Cartoonizer with TensorFlow.js
An app to turn your photos into cartoon-styled images 🎨 within your browsers using White-box Cartoonization GAN.
computer-vision tensorflow tensorflow-js generative-adversarial-networks image-to-image-translation demo code

App preview: Upload an image or try examples

demo

We used Generative Adversarial Network (GAN) model proposed in Learning to Cartoonize Using White-box Cartoon Representations (CVPR 2020) by Xinrui Wang and Jinze Yu.

Our idea was to test if it is reasonably possible to perform model inferences in the browser clients with CPUs only. Without needing to send any of user's data (images) to servers.

Here's the application flow and architecture:

This work was possible due to - Margaret Maynard-Reid and Sayak Paul's work on How to Create a Cartoonizer with TensorFlow Lite - Xinrui Wang and Jinze Yu's original work on White-box CartoonGAN

Citation

Xinrui Wang and Jinze Yu are the original authors of White-box CartoonGAN. @InProceedings{Wang_2020_CVPR, author = {Wang, Xinrui and Yu, Jinze, title = {Learning to Cartoonize Using White-Box Cartoon Representations, booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2020} }

Links

Don't forget to tag @pratapvardhan in your comment, otherwise they may not be notified.

Authors original post
Share this project
Similar projects
Extension to block NSFW content using AI
NSFW Filter is an extension that blocks NSFW content from your browser. It uses a computer vision model to detect NSFW content and hides it from the user.
Tensorflow2 Object Detection Tutorial
In this tutorial, we will be going step by step the complete training process of Tensorflow2 Object Detection.
Pix2Pix with Tf-js
Implementation of web friendly ML models using TensorFlow.js. pix2pix, face segmentation, fast style transfer and many more ...
Image Classifier: In the Browser
Using Tensorflow.js to make the prediction directly in the browser.