• Stars
    star
    1,155
  • Rank 40,393 (Top 0.8 %)
  • Language
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated almost 3 years ago

Reviews

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

Repository Details

An awesome list of TensorFlow Lite models, samples, tutorials, tools and learning resources.

awesome tflite

Awesome TensorFlow Lite Awesome PRs Welcome Twitter

TensorFlow Lite is a set of tools that help convert and optimize TensorFlow models to run on mobile and edge devices. It's currently running on more than 4 billion devices! With TensorFlow 2.x, you can train a model with tf.Keras, easily convert a model to .tflite and deploy it; or you can download a pretrained TensorFlow Lite model from the model zoo.

This is an awesome list of TensorFlow Lite models with sample apps, helpful tools and learning resources -

  • Showcase what the community has built with TensorFlow Lite
  • Put all the samples side-by-side for easy reference
  • Share knowledge and learning resources

Please submit a PR if you would like to contribute and follow the guidelines here.

Contents

Past announcements:

Here are some past feature annoucements of TensorFlow Lite:

Models with samples

Here are the TensorFlow Lite models with app / device implementations, and references. Note: pretrained TensorFlow Lite models from MediaPipe are included, which you can implement with or without MediaPipe.

Computer vision

Classification

Task Model App | Reference Source
Classification MobileNetV1 (download) Android | iOS | Raspberry Pi | Overview tensorflow.org
Classification MobileNetV2 Recognize Flowers on Android Codelab | Android TensorFlow team
Classification MobileNetV2 Skin Lesion Detection Android Community
Classification MobileNetV2 American Sign Language Detection | Colab Notebook | Android Community
Classification CNN + Quantisation Aware Training Stone Paper Scissor Detection Colab Notebook | Flutter Community
Classification EfficientNet-Lite0 (download) Icon Classifier Colab & Android | tutorial 1 | tutorial 2 Community

Detection

Task Model App | Reference Source
Object detection Quantized COCO SSD MobileNet v1 (download) Android | iOS | Overview tensorflow.org
Object detection YOLO Flutter | Paper Community
Object detection YOLOv5 Yolov5 Inference Community
Object detection MobileNetV2 SSD (download) Reference MediaPipe
Object detection MobileDet (Paper) Blog post (includes the TFLite conversion process) MobileDet is from University of Wisconsin-Madison and Google and the blog post is from the Community
License Plate detection SSD MobileNet (download) Flutter Community
Face detection BlazeFace (download) Paper MediaPipe
Face Authentication FaceNet Flutter Community
Hand detection & tracking Palm detection & hand landmarks (download) Blog post | Model card | Android MediaPipe & Community

Segmentation

Task Model App | Reference Source
Segmentation DeepLab V3 (download) Android & iOS | Overview | Flutter Image | Realtime | Paper tf.org & Community
Segmentation Different variants of DeepLab V3 models Models on TF Hub with Colab Notebooks Community
Segmentation DeepLab V3 model Android | Tutorial Community
Hair Segmentation Download Paper MediaPipe

Style Transfer

Task Model App | Reference Source
Style transfer Arbitrary image stylization Overview | Android | Flutter tf.org & Community
Style transfer Better-quality style transfer models in .tflite Models on TF Hub with Colab Notebooks Community
Video Style Transfer Download:
Dynamic range models)
Android | Tutorial Community
Segmentation & Style transfer DeepLabV3 & Style Transfer models Project repo | Android | Tutorial Community

Generative

Task Model App | Reference Source
GANs U-GAT-IT (Selfie2Anime) Project repo | Android | Tutorial Community
GANs White-box CartoonGAN (download) Project repo | Android | Tutorial Community
GANs - Image Extrapolation Boundless on TF Hub Colab Notebook | Original Paper Community

Post estimation

Task Model App | Reference Source
Pose estimation Posenet (download) Android | iOS | Overview tensorflow.org
Pose Classification based Video Game Control MoveNet Lightning (download) Project Repository Community

Other

Task Model App | Reference Source
Low-light image enhancement Models on TF Hub Project repo | Original Paper | Flutter
OCR Models on TF Hub Project Repository Community

Text

Task Model Sample apps Source
Question & Answer DistilBERT Android Hugging Face
Text Generation GPT-2 / DistilGPT2 Android Hugging Face
Text Classification Download Android |iOS | Flutter tf.org & Community
Text Detection CRAFT Text Detector (Paper) Download | Project Repository | Blog1-Conversion to TFLite | Blog2-EAST vs CRAFT | Models on TF Hub | Android (Coming Soon) Community
Text Detection EAST Text Detector (Paper) Models on TF Hub | Conversion and Inference Notebook Community

Speech

Task Model App | Reference Source
Speech Recognition DeepSpeech Reference Mozilla
Speech Recognition CONFORMER Inference Android Community
Speech Synthesis Tacotron-2, FastSpeech2, MB-Melgan Android TensorSpeech
Speech Synthesis(TTS) Tacotron2, FastSpeech2, MelGAN, MB-MelGAN, HiFi-GAN, Parallel WaveGAN Inference Notebook | Project Repository Community

Recommendation

Task Model App | Reference Source
On-device Recommendation Dual-Encoder Android | iOS | Reference tf.org & Community

Game

Task Model App | Reference Source
Game agent Reinforcement learning Flutter | Tutorial Community

Model zoo

TensorFlow Lite models

These are the TensorFlow Lite models that could be implemented in apps and things:

TensorFlow models

These are TensorFlow models that could be converted to .tflite and then implemented in apps and things:

Ideas and Inspiration

  • E2E TFLite Tutorials - Checkout this repo for sample app ideas and seeking help for your tutorial projects. Once a project gets completed, the links of the TensorFlow Lite model(s), sample code and tutorial will be added to this awesome list.

ML Kit examples

ML Kit is a mobile SDK that brings Google's ML expertise to mobile developers.

Plugins and SDKs

Helpful links

Learning resources

Interested but not sure how to get started? Here are some learning resources that will help you whether you are a beginner or a practitioner in the field for a while.

Blog posts

Books

Videos

Podcasts

MOOCs

More Repositories

1

Cartoonizer-with-TFLite

How to create a Cartoonizer Android app with TensorFlow Lite models.
Jupyter Notebook
117
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