asus4 / Tf Lite Unity Sample
TensorFlow Lite Samples on Unity
Stars: ✭ 306
Labels
Projects that are alternatives of or similar to Tf Lite Unity Sample
Unity Destruction
💥 An open-source script to destroy objects realistically in Unity3D.
Stars: ✭ 291 (-4.9%)
Mutual labels: unity
Depthinverseprojection
An example showing how to inverse-project depth samples into the view/world space in Unity.
Stars: ✭ 296 (-3.27%)
Mutual labels: unity
Knight
Knight is a game framework based on Unity3D engine. It includes a complete assetbundle manager, a c# hotfix module based on ILRuntime, and a UI module based on MVVM, and other basic functions support.
Stars: ✭ 302 (-1.31%)
Mutual labels: unity
Screenmanager
Flexible way to manage screens with transitions for Unity
Stars: ✭ 300 (-1.96%)
Mutual labels: unity
Zcode Assetbundlepacker
Unity的AssetBundle模块扩展插件,主要目的用于简化AssetBundle打包,提供AssetBundle管理,支持热更新、支持资源包下载、支持版本控制。
Stars: ✭ 291 (-4.9%)
Mutual labels: unity
Configurableshaders
Showing off the power of shader properties in Unity
Stars: ✭ 304 (-0.65%)
Mutual labels: unity
Unity Serializabledictionary
Serializable dictionary class for Unity
Stars: ✭ 302 (-1.31%)
Mutual labels: unity
Ilruntime hotgames
基于ILRuntime的热更新能力实现的可以直接使用的框架,友情赠送C# WebService + WebSocketServer服务器端。
Stars: ✭ 293 (-4.25%)
Mutual labels: unity
Marching Cubes Terrain
Marching Cubes terrain implementation in Unity using the Job System and the Burst compiler
Stars: ✭ 292 (-4.58%)
Mutual labels: unity
Nativerenderingplugin
C++ Rendering Plugin example for Unity
Stars: ✭ 299 (-2.29%)
Mutual labels: unity
Project Skylines
procedural retro 3d game, winner of the GitHub Gameoff 2017
Stars: ✭ 293 (-4.25%)
Mutual labels: unity
Liquidsimulator
Cellular Automaton 2D Liquid Simulator for Unity
Stars: ✭ 302 (-1.31%)
Mutual labels: unity
Gromit Mpx
Gromit-MPX is an on-screen annotation tool that works with any Unix desktop environment under X11 as well as Wayland.
Stars: ✭ 287 (-6.21%)
Mutual labels: unity
Proceduralmotiontrack
Simple procedural motion with Unity Timeline.
Stars: ✭ 300 (-1.96%)
Mutual labels: unity
Standardgeometryshader
An example of a geometry shader with Unity's standard lighting model support.
Stars: ✭ 303 (-0.98%)
Mutual labels: unity
TensorFlow Lite for Unity Samples
Porting of "TensorFlow Lite Examples" to Unity. and some utilities for Unity.
Tested on
- iOS / Android / macOS / Windows
- Unity 2019.4.17f1
- TensorFlow 2.4.0
Samples
- TensorFlow
- MNIST
- SSD Object Detection
- DeepLab
- PoseNet
- Style Transfer
- Text Classification
- Bert Question and Answer
- MediaPipe
- Hand Tracking
- Blaze Face
- Face Mesh
- Blaze Pose (Upper body)
- MLKit
- Blaze Pose (Full body)
- Meet Segmentation
Included prebuilt libraries
iOS | Android | macOS | Ubuntu | Windows | |
---|---|---|---|---|---|
Core CPU | ✅ | ✅ | ✅ | ✅ | ✅ |
Metal Delegate | ✅ | - | ✅ | - | - |
OpenGL Delegate | - | ✅ | - | - | - |
NNAPI Delegate | - | ✅ | - | - | - |
- All libraries except iOS are targeted 64bit platform: arm64 or x86_64.
Install TensorFlow Lite for Unity
- Clone this repository with examples
- Need Git-LFS to build for iOS
- Or core library is available on OpenUPM
Build TensorFlow Lite libraries
Pre-built libraries are included. If you want to build the latest TFLite,
- Clone TensorFlow library
- Run
./configure
in the TensorFlow library - Run
./build_tflite.py
(Python3) to build for each platform
# Update iOS, Andoid and macOS
./build_tflte.py --tfpath ../tensorflow -ios -android -macos
# Build with XNNPACK
./build_tflte.py --tfpath ../tensorflow -macos -xnnpack
- To build macOS Metal Delegate on TensorFlow v2.3.0 or later, You need to apply following changes the issue
TIPS
[Android] You can see logs from tflite by filtering with "tflite"
# Filtering logcat only Unity and tflite
adb logcat Unity:V tflite:V "*:S"
Show Cases
License
Samples folder Assets/Samples/*
is licensed under MIT
MIT License
Copyright (c) 2021 Koki Ibukuro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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
- SSD
- DeepLab Lab
- MNIST
- Style Transfer
- PoseNet
- Text classification
- Smart Reply
-
MediaPipe Models
- Blaze Pose
- Face Mesh
- Hand Tracking
-
Meet Segmentation Model
- Using the modified model from PINTO_model_zoo to remove the custom post-process.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].