Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tf-lite-unity-sample

> 包管理
Open source

TensorFlow Lite Samples on Unity

961 stars0 likes2 views
WebsiteGitHub

About

TensorFlow Lite Samples on Unity

TensorFlow Lite for Unity Samples

Porting of "TensorFlow Lite Examples" and some utilities for Unity.

Tested on

  • iOS / Android / macOS / Windows / Linux
  • Unity 6000.3.11f1
  • TensorFlow 2.21.0

Included examples:

  • TensorFlow
    • MNIST
    • EfficientDet Object Detection
    • DeepLab
    • MoveNet
    • Style Transfer
    • Text Classification
    • Bert Question and Answer
    • Super Resolution
    • Audio Classification
  • MediaPipe
    • Hand Tracking
    • Blaze Face
    • Face Mesh
    • Blaze Pose (Full body)
    • Selfie Segmentation

Included prebuilt libraries:

iOS Android macOS Ubuntu Windows
Core CPU ✅ ✅ ✅ ✅ ✅
Metal Delegate ✅ - ✅ - -
GPU Delegate - ✅ - ✅ Experimental -
NNAPI Delegate - ✅ - - -
  • You need to install OpenGL ES and OpenCL to run GPU Delegate on Linux. See MediaPipe for details.

Install TensorFlow Lite for Unity

[!IMPORTANT]
You need to install Git-LFS.

  • To try all examples, clone this repository with Git-LFS.
  • If you need TensorFlow Lite libraries via UPM, open the file Packages/manifest.json and add the following lines into the scopedRegistries and dependencies sections.
…

Build TensorFlow Lite libraries yourself

Pre-built libraries are included in the UPM package. Also, you can find TFLite libraries at tflite-runtime-builder from TFLite v2.14.0 or later.

If you want to build the latest TFLite yourself, Follow the below instructions:

  1. Clone TensorFlow library
  2. Run ./configure in the TensorFlow library
  3. Run ./build_tflite.py (Python3) to build for each platform
bash
# Update iOS, Android and macOS
./build_tflite.py --tfpath ../tensorflow -ios -android -macos

# Build with XNNPACK
./build_tflite.py --tfpath ../tensorflow -macos -xnnpack

Show Cases

MNIST

SSD Object Detection

DeepLab Semantic Segmentation

Style Transfer

Hand Tracking

BERT

License

Samples folder Assets/Samples/* is licensed under MIT

…

Other Licenses

  • TensorFlow: Apache License 2.0
  • MediaPipe: Apache License 2.0
    • Some MediaPipe C# codes are based on terryky/tflite_gles_app

Model Licenses

: Each TensorFlow Lite model might have a different license. Please check the license of the model you use.

  • Official TFlite Models
    • Bert
    • EfficientDet
    • DeepLab Lab
    • MNIST
    • Style Transfer
    • MoveNet
    • Text classification
    • Smart Reply
  • MediaPipe Models
    • Blaze Pose
    • Face Mesh
    • Hand Tracking
    • Selfie Segmentation
      • Using the modified model from PINTO_model_zoo to remove the custom post-process.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#machine-learningmediapipetensorflow-liteunity

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image