このページの内容

Awesome TensorFlow Lite

TensorFlow Liteを扱う資料や関連プロジェクトをまとめたAwesomeリストです。

目次

過去のお知らせ

TensorFlow Liteの過去の機能発表です。

  • Announcement of the new converter - MLIRベースであり、マスクR-CNNやモバイルBERTなど、新しいモデルクラスの変換を可能にし、変換中の機能制御フローとエラーハンドリングをより改善します。夜間ビルドで既に有効になっています.
  • Android Support Library - モバイル開発をより容易にします(Androidサンプルコード).
  • Model Maker - 数行のコードで、カスタムimage & text分類モデルを作成できます。以下にコミュニティが提供したアイコン分類チュートリアルをご覧ください.
  • On-device training - ついに到着!現在は画像分類用の転移学習に限定されていますが、非常に良いスタートです。公式のAndroidサンプルコードと、コミュニティから提供された別のサンプルコード(Blog | Android)をご覧ください.
  • Hexagon delegate - Hexagon Delegateを使用して、モバイルおよびエッジデバイスでのモデル推論を高速化する方法について。また、ブログ記事 Accelerating TensorFlow Lite on Qualcomm Hexagon DSPsもご確認ください.
  • Model Metadata - モデル記述の標準を提供し、同時にCode Gen and Android Studio ML Model Bindingを可能にします.

サンプル付きモデル

アプリ/デバイス実装と参考資料を備えたTensorFlow Liteモデルです。 注: MediaPipeの学習済みTensorFlow Liteモデルも含みます。MediaPipeの有無にかかわらず実装できます。

コンピュータービジョン

分類

TaskModelApp | ReferenceSource
ClassificationMobileNetV1 (download)Android | iOS | Raspberry Pi | Overviewtensorflow.org
ClassificationMobileNetV2Recognize Flowers on Android Codelab | AndroidTensorFlow team
ClassificationMobileNetV2Skin Lesion Detection AndroidCommunity
ClassificationMobileNetV2American Sign Language Detection | Colab Notebook | AndroidCommunity
ClassificationCNN + Quantisation Aware TrainingStone Paper Scissor Detection Colab Notebook | FlutterCommunity
ClassificationEfficientNet-Lite0 (download)Icon Classifier Colab & Android | tutorial 1 | tutorial 2Community

検出

TaskModelApp | ReferenceSource
Object detectionQuantized COCO SSD MobileNet v1 (download)Android | iOS | Overviewtensorflow.org
Object detectionYOLOFlutter | PaperCommunity
Object detectionYOLOv5Yolov5 Inference Community
Object detectionMobileNetV2 SSD (download)ReferenceMediaPipe
Object detectionMobileDet (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 detectionSSD MobileNet (download)FlutterCommunity
Face detectionBlazeFace (download)PaperMediaPipe
Face AuthenticationFaceNetFlutterCommunity
Hand detection & trackingPalm detection & hand landmarks (download)Blog post | Model card | AndroidMediaPipe & Community

セグメンテーション

TaskModelApp | ReferenceSource
SegmentationDeepLab V3 (download)Android & iOS | Overview | Flutter Image | Realtime | Papertf.org & Community
SegmentationDifferent variants of DeepLab V3 modelsModels on TF Hub with Colab NotebooksCommunity
SegmentationDeepLab V3 modelAndroid | TutorialCommunity
Hair SegmentationDownloadPaperMediaPipe

スタイル変換

TaskModelApp | ReferenceSource
Style transferArbitrary image stylizationOverview | Android | Fluttertf.org & Community
Style transferBetter-quality style transfer models in .tfliteModels on TF Hub with Colab NotebooksCommunity
Video Style TransferDownload:
Dynamic range models)
Android | TutorialCommunity
Segmentation & Style transferDeepLabV3 & Style Transfer modelsProject repo | Android | TutorialCommunity

生成

TaskModelApp | ReferenceSource
GANsU-GAT-IT (Selfie2Anime)Project repo | Android | TutorialCommunity
GANsWhite-box CartoonGAN (download)Project repo | Android | TutorialCommunity
GANs - Image ExtrapolationBoundless on TF HubColab Notebook | Original PaperCommunity

姿勢推定

TaskModelApp | ReferenceSource
Pose estimationPosenet (download)Android | iOS | Overviewtensorflow.org
Pose Classification based Video Game ControlMoveNet Lightning (download)Project RepositoryCommunity

その他

TaskModelApp | ReferenceSource
Low-light image enhancementModels on TF HubProject repo | Original Paper | Flutter
OCRModels on TF HubProject RepositoryCommunity

テキスト

TaskModelSample appsSource
Question & AnswerDistilBERTAndroidHugging Face
Text GenerationGPT-2 / DistilGPT2AndroidHugging Face
Text ClassificationDownloadAndroid |iOS | Fluttertf.org & Community
Text DetectionCRAFT Text Detector (Paper)Download | Project Repository | Blog1-Conversion to TFLite | Blog2-EAST vs CRAFT | Models on TF Hub | Android (Coming Soon)Community
Text DetectionEAST Text Detector (Paper)Models on TF Hub | Conversion and Inference NotebookCommunity

音声

TaskModelApp | ReferenceSource
Speech RecognitionDeepSpeechReferenceMozilla
Speech RecognitionCONFORMERInference AndroidCommunity
Speech SynthesisTacotron-2, FastSpeech2, MB-MelganAndroidTensorSpeech
Speech Synthesis(TTS)Tacotron2, FastSpeech2, MelGAN, MB-MelGAN, HiFi-GAN, Parallel WaveGANInference Notebook | Project RepositoryCommunity

推薦

TaskModelApp | ReferenceSource
On-device RecommendationDual-EncoderAndroid | iOS | Referencetf.org & Community

ゲーム

TaskModelApp | ReferenceSource
Game agentReinforcement learningFlutter | TutorialCommunity

モデル集

TensorFlow Liteモデル

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

  • MobileNet - 事前学習済みのMobileNet v2およびv3モデル.
  • TensorFlow Lite models
    • TensorFlow Lite models - 公式AndroidおよびiOSのサンプルコードを提供しています.
    • Pretrained models - 量子化および浮動小数点バリアントを提供しています.
    • TensorFlow Hub - 「モデル形式 = TFLite」と設定することで、TensorFlow Liteモデルを検索できます.

TensorFlowモデル

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

アイデアと着想

  • E2E TFLite Tutorials - このリポジトリをチェックして、アプリアイデアやチュートリアルプロジェクトのサポートを受けてください。プロジェクトが完了したら、TensorFlow Liteモデル、サンプルコード、チュートリアルのリンクがこの素晴らしいリストに追加されます.

ML Kitのサンプル

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

プラグインとSDK

便利なリンク

学習資料

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.

ブログ記事

書籍

動画

ポッドキャスト

MOOC