• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    Jupyter Notebook
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

How to create a Cartoonizer Android app with TensorFlow Lite models.

Cartoonizer with TensorFlow Lite

This is the GitHub repository for an end-to-end tutorial on How to Create a Cartoonizer with TensorFlow Lite, published on the official TensorFlow blog. The tutorial demonstrates the steps for TFLite model saving, conversion and all the way up to model deployment on an Android App. It's one of a series of the End-to-End TensorFlow Lite Tutorials. See the full list of TensorFlow Lite samples and learning resources on awesome-tflite.

Authors: (ML GDEs: Google Developers Experts for Machine Learning) Margaret Maynard-Reid and Sayak Paul
Reviewers: (Google TensorFlow team) Khanh LeViet and Hoi Lam

Repo structure

In this project repo, the ml folder contains the model files, and the instructions on how to save the model, and convert it to selfe2anime.tflite, and add metadata to it via either command line or a Colab notebook.

The android folder contains the Android source code and the instructions on how to build the Android app.

The White-box CartoonGAN model

We used a Generative Adversarial Network (GAN) model proposed in this CVPR 2020 paper Learning to Cartoonize Using White-box Cartoon Representations. The pretrained weights were provided by the authors of the paper and available in their project GitHub repository here.

Citation

The original authors of White-box CartoonGAN are Xinrui Wang and Jinze Yu.

@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} }

Acknowledgement

We would like to thank Khanh LeViet and Lu Wang (TensorFlow Lite team), Hoi Lam (Android ML), and Soonson Kwon (ML GDEs Google Developers Expert Program), for their collaboration and continuous support.

More Repositories

1

awesome-tensorflow-lite

An awesome list of TensorFlow Lite models, samples, tutorials, tools and learning resources.
1,155
star
2

Selfie2Anime-with-TFLite

How to create Selfie2Anime from tflite model to Android.
Jupyter Notebook
74
star
3

segmentation-style-transfer

A background stylizer Android app chaining 2 ML models: segmentation & style transfer.
Kotlin
57
star
4

awesome-ai-art-design

An awesome list: AI for art and design.
29
star
5

E2E-tfKeras-TFLite-Android

End to end training MNIST image classifier with tf.Keras, convert to TFLite and deploy to Android
Jupyter Notebook
18
star
6

GANs-in-Art-and-Design

Colab notebooks for GAN tutorials.
Jupyter Notebook
18
star
7

caster-io-courses

Caster IO courses
Jupyter Notebook
18
star
8

esrgan-e2e-tflite-tutorial

ESRGAN E2E TFLite Tutorial
Jupyter Notebook
17
star
9

deep-learning

Deep learning with TensorFlow and Keras.
Jupyter Notebook
11
star
10

andevcon

Sample code for AnDevCon talk
Java
9
star
11

study-with-sketchnotes

My sketchnotes of what I learned from talks, papers, books and courses.
7
star
12

icon-classifier

An Icon classifier made with TFLite Model Maker and deployed to Android with ML Model Binding.
Jupyter Notebook
7
star
13

met-museum-data-analysis

Data analysis of the artists and artworks of the Metropolitan Museum of Art
Jupyter Notebook
4
star
14

CVND-Landmark-Detection-Tracking-SLAM

Landmark detection and robot tracking with SLAM
Jupyter Notebook
3
star
15

uw-android-app-dev

Sample code for UW Android Application Development certificate program in 2015.
Java
2
star
16

CVND-Image-Captioning

Use CNN encoder and RNN decoder to automatically generate image captions
Jupyter Notebook
2
star
17

mediapipe-classifier-embedding

MediaPipe tutorials
Jupyter Notebook
2
star
18

CVND-Facial-Keypoint-Detection

Use a CNN to detect facial keypoints
Jupyter Notebook
2
star
19

android-ml-ui-templates

A set of UI samples for Android ML apps
1
star
20

apps-with-intelligence

Sample Android apps with intelligence.
Java
1
star
21

fashion-product-images

Explore the Kaggle Fashion Product Images dataset for computer vision tasks
Jupyter Notebook
1
star
22

margaretmz.github.io

HTML
1
star
23

image-segmentation

image segmentation
Jupyter Notebook
1
star