TFLite models are normally not supported by the ml-agents framework. This causes the problem that quantized models can not be currently run by the Unity Inference Engine whereas performance drawbacks are inevitable during the runtime. Currently, tflite models' performances are backed by the GPU delegates which have been implemented in the mean time and are being developed further. Especially, with the development of frameworks like MediaPipe, Unity could need more power on the Android side due to the unsupport of the TFLite models. This plugin helps to integrate TFLite inference into the Unity Engine and also to the R&D teams for preparing quick prototypes as the Unity Engine has an easy environment to accomplish this purpose.
- Simple TFLite interpreter integration(in development).
- Reusable plug&play API on the C# side to reduce development time without rewriting the same components again(in development).
- Easy integration into the AR Foundations environment to use computer vision neural nets for several tasks for AR scenes(in development).
- Performance optimizations.
TFARInterface : A Unity interface to use the tflite plugin.
TFLite Android : A plugin to support tflite models on the Android side. TODO: iOS plugin will be added.
Contributions are welcomed and encouraged!
- TFLite plugin will be ported to C++ for better performance.
- You can add your .tflite models into the /assets folder to share them for reuse(pull request with model details is encouraged!).
Thanks to the MediaPipe Team for having published their useful models for essential AR interactions!
- Tensorflow Lite 2.0.0
- Unity 2019.2(recommended)
- Android Studio