All Projects → asus4 → Tf Lite Unity Sample

asus4 / Tf Lite Unity Sample

TensorFlow Lite Samples on Unity

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
Open Project 1
Unity Open Project #1: Chop Chop
Stars: ✭ 4,235 (+1283.99%)
Mutual labels:  unity
Kcp
KCP C#版。线程安全,运行时无alloc,对gc无压力。
Stars: ✭ 294 (-3.92%)
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
Gdk For Unity
SpatialOS GDK for Unity
Stars: ✭ 296 (-3.27%)
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
Gltfutility
Simple GLTF importer for Unity
Stars: ✭ 305 (-0.33%)
Mutual labels:  unity
Standardgeometryshader
An example of a geometry shader with Unity's standard lighting model support.
Stars: ✭ 303 (-0.98%)
Mutual labels:  unity
Ului
unity3d - advanced control library
Stars: ✭ 301 (-1.63%)
Mutual labels:  unity

TensorFlow Lite for Unity Samples

openupm

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
  • Or core library is available on OpenUPM

Build TensorFlow Lite libraries

Pre-built libraries are included. If you want to build the latest TFLite,

  1. Clone TensorFlow library
  2. Run ./configure in the TensorFlow library
  3. 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

MNIST
Mnist

SSD Object Detection
SSD

DeepLab Semantic Segmentation
DeepLab

Style Transfer
styletransfter

Hand Tracking
handtracking

BERT
BERT

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

Model Licenses

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

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].