STT-tensorflow/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin
2020-07-17 15:18:41 +02:00
..
Assets Fix string.Join method to work on Unity 2017.4 2020-07-17 15:18:41 +02:00
ProjectSettings
UnityPackageManager
.gitignore
README.md Update build commands 2020-02-14 16:14:14 -08:00

TF Lite Experimental Unity Plugin

This directory contains an experimental sample Unity (2017) Plugin, based on the experimental TF Lite C API. The sample demonstrates running inference within Unity by way of a C# Interpreter wrapper.

Note that the native TF Lite plugin(s) must be built before using the Unity Plugin, and placed in Assets/TensorFlowLite/SDK/Plugins/. For the editor (note that the generated shared library name and suffix are platform-dependent):

bazel build -c opt //tensorflow/lite/c:tensorflowlite_c

and for Android (replace android_arm with android_arm64 for 64-bit):

bazel build -c opt --config=android_arm //tensorflow/lite/c:tensorflowlite_c

If you encounter issues with native plugin discovery on Mac ("Darwin") platforms, try renaming libtensorflowlite_c.dylib to tensorflowlite_c.bundle.