TensorFlow Lite Samples on Unity
Porting of "TensorFlow Lite Examples" and some utilities for Unity.
Tested on
Included examples:
Included prebuilt libraries:
| iOS | Android | macOS | Ubuntu | Windows | |
|---|---|---|---|---|---|
| Core CPU | ✅ | ✅ | ✅ | ✅ | ✅ |
| Metal Delegate | ✅ | - | ✅ | - | - |
| GPU Delegate | - | ✅ | - | ✅ Experimental | - |
| NNAPI Delegate | - | ✅ | - | - | - |
[!IMPORTANT]
You need to install Git-LFS.
Packages/manifest.json and add the following lines into the scopedRegistries and dependencies sections.…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:
./configure in the TensorFlow library./build_tflite.py (Python3) to build for each platform# Update iOS, Android and macOS
./build_tflite.py --tfpath ../tensorflow -ios -android -macos
# Build with XNNPACK
./build_tflite.py --tfpath ../tensorflow -macos -xnnpackMNIST
SSD Object Detection
DeepLab Semantic Segmentation
Style Transfer
Hand Tracking
BERT
Samples folder Assets/Samples/* is licensed under MIT
…Other Licenses
Model Licenses
: Each TensorFlow Lite model might have a different license. Please check the license of the model you use.
No open issues yet, or sync has not completed.