All Projects → Robinatp → Tensorflow_Lite_Demo

Robinatp / Tensorflow_Lite_Demo

Licence: other
An example Android application using TensorFLow Lite is available on Tensorflow github, Creating a project directory in tensorflow/tensorflow/contrib/lite/ , which is builted on Android studio 3.0.I have download the model of tflite format and complie the libtensorflowlite_jni.so and libtensorflowlite.jar

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Tensorflow Lite Demo

Keras-Android-XOR
How to run a Keras model on Android using Tensorflow API.
Stars: ✭ 32 (+113.33%)
Mutual labels:  tensorflow-lite
SketchRecognition
Model and Android app for sketch recognition using Google's quickdraw dataset
Stars: ✭ 28 (+86.67%)
Mutual labels:  tensorflow-lite
Delta
DELTA is a deep learning based natural language and speech processing platform.
Stars: ✭ 1,479 (+9760%)
Mutual labels:  tensorflow-lite
Selfie2Anime-with-TFLite
How to create Selfie2Anime from tflite model to Android.
Stars: ✭ 70 (+366.67%)
Mutual labels:  tensorflow-lite
mruby-tflite
MRuby binding for TensorFlow Lite
Stars: ✭ 14 (-6.67%)
Mutual labels:  tensorflow-lite
tflite flutter helper
TensorFlow Lite Flutter Helper Library
Stars: ✭ 85 (+466.67%)
Mutual labels:  tensorflow-lite
coral-pi-rest-server
Perform inferencing of tensorflow-lite models on an RPi with acceleration from Coral USB stick
Stars: ✭ 49 (+226.67%)
Mutual labels:  tensorflow-lite
awesome-ml-demos-with-ios
The challenge projects for Inferencing machine learning models on iOS
Stars: ✭ 1,040 (+6833.33%)
Mutual labels:  tensorflow-lite
pico-mnist
Number recognition with MNIST on Raspberry Pi Pico + TensorFlow Lite for Microcontrollers
Stars: ✭ 44 (+193.33%)
Mutual labels:  tensorflow-lite
google-coral
Community gathering point for Google Coral dev board and dongle knowledge.
Stars: ✭ 81 (+440%)
Mutual labels:  tensorflow-lite
NARUTO-HandSignDetection
物体検出を用いてNARUTOの印(子~亥、壬、合掌)を検出するモデルとサンプルプログラムです。このリポジトリでは、YOLOXを使用しています(This is a model and sample program that detects NARUTO's hand sign using object detection. This repository use YOLOX.)
Stars: ✭ 186 (+1140%)
Mutual labels:  tensorflow-lite
TFLite-Mobile-Generic-Object-Localizer
Python TFLite scripts for detecting objects of any class in an image without knowing their label.
Stars: ✭ 42 (+180%)
Mutual labels:  tensorflow-lite
Tensorflow-lite-kotlin-samples
📌This repo contains the kotlin implementation of TensorflowLite Example Android Apps🚀
Stars: ✭ 17 (+13.33%)
Mutual labels:  tensorflow-lite
play with tflite
Sample projects for TensorFlow Lite in C++ with delegates such as GPU, EdgeTPU, XNNPACK, NNAPI
Stars: ✭ 222 (+1380%)
Mutual labels:  tensorflow-lite
Open nsfw android
🔥🔥🔥色情图片离线识别,基于TensorFlow实现。识别只需20ms,可断网测试,成功率99%,调用只要一行代码,从雅虎的开源项目open_nsfw移植,该模型文件可用于iOS、java、C++等平台
Stars: ✭ 1,586 (+10473.33%)
Mutual labels:  tensorflow-lite
E2E-tfKeras-TFLite-Android
End to end training MNIST image classifier with tf.Keras, convert to TFLite and deploy to Android
Stars: ✭ 17 (+13.33%)
Mutual labels:  tensorflow-lite
BodyPoseEstimationAndroid
🙋‍♂️Use Body Pose Estimation to perform pose matching on Android
Stars: ✭ 15 (+0%)
Mutual labels:  tensorflow-lite
TFLite-ModelMaker-EfficientDet-Colab-Hands-On
TensorFlow Lite Model Makerで物体検出を行うハンズオン用資料です(Hands-on for object detection with TensorFlow Lite Model Maker)
Stars: ✭ 15 (+0%)
Mutual labels:  tensorflow-lite
Netron
Visualizer for neural network, deep learning, and machine learning models
Stars: ✭ 17,193 (+114520%)
Mutual labels:  tensorflow-lite
react-native-tflite
Tensorflow Lite for React Native (now just support ios)
Stars: ✭ 20 (+33.33%)
Mutual labels:  tensorflow-lite

Tensorflow_Lite_Demo

An example Android application using TensorFLow Lite is available on Tensorflow github, Creating a project directory in tensorflow/tensorflow/contrib/lite/ , which is builted on Android studio 3.0.I have download the model of tflite format and complie the libtensorflowlite_jni.so and libtensorflowlite.jar

In the demo app, inference is done using the TensorFlow Lite Java API. The demo app classifies frames in real-time, displaying the top most probable classifications. It also displays the inference time taken to detect the object.

There are two ways to get the demo app to your device:

1,Use Android Studio to build the application. Here it's mine work ! 2,Download the source code for TensorFlow Lite and the demo and build it using bazel.I have just give building commands !

To build the demo app, run bazel:

TfLiteCameraDemo ---- The demo app classifier

#./tensorflow direction run the bellow command

bazel build --cxxopt=--std=c++11 //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo

for more infomation about TfLiteCameraDemo

tflite_demo ---- The demo app on classifier, detector, speech

#./tensorflow direction run the bellow command

sudo bazel build -c opt --config=android_arm{,64} --cxxopt='--std=c++11' "//tensorflow/contrib/lite/examples/android:tflite_demo"

for more infomation about tflite_demo

bazel-bin/tensorflow/contrib/lite/java/libtensorflowlite.jar ---- the java api for tensorflow lite

sudo bazel build -c opt --config=android_arm{,64} --cxxopt='--std=c++11' "//tensorflow/contrib/lite/java:tensorflowlite"

bazel-bin/tensorflow/examples/android/libtensorflow_demo.so ---- the native c++ jni interface for libtensorflowlite.jar

sudo bazel build -c opt --config=android_arm{,64} --cxxopt='--std=c++11' "//tensorflow/examples/android:libtensorflow_demo.so"

attention

1, Edit your WORKSPACE to add SDK and NDK targets.

android_sdk_repository( name = "androidsdk", api_level = 25, # Ensure that you have the build_tools_version below installed in the # SDK manager as it updates periodically. build_tools_version = "26.0.1", # Replace with path to Android SDK on your system path = "/home/XXXX/Software/SDK", )

android_ndk_repository( name="androidndk", path="/home/XXXX/Software/NDK/android-ndk-r13b", # This needs to be 14 or higher to compile TensorFlow. # Please specify API level to >= 21 to build for 64-bit # archtectures or the Android NDK will automatically select biggest # API level that it supports without notice. # Note that the NDK version is not the API level. api_level=25)

2, Build this demo app with Bazel. The demo needs C++11. We configure the fat_apk_cpu flag to package support for 4 hardware variants. You may replace it with --config=android_arm64 on a 64-bit device and --config=android_arm for 32-bit device: For examples:

bazel build -c opt --cxxopt='--std=c++11' --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a
//tensorflow/contrib/lite/examples/android:tflite_demo

bazel build -c opt --config=android_arm{,64} --cxxopt='--std=c++11' "//tensorflow/contrib/lite/examples/android:tflite_demo"

3, Build the Tensorflow mobile demo using Bazel,which has a fuller set of supported functionality, while TensorFlow Lite supports only a limited set of operators, so not all models will work on it by default.

#bazel-bin/tensorflow/examples/android/tensorflow_demo.apk bazel build -c opt //tensorflow/examples/android:tensorflow_demo

#bazel-bin/tensorflow/contrib/android/libandroid_tensorflow_inference_java.jar bazel build //tensorflow/contrib/android:android_tensorflow_inference_java

#bazel-bin/tensorflow/contrib/android/libtensorflow_inference.so sudo bazel build -c opt //tensorflow/contrib/android:libtensorflow_inference.so --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=armeabi-v7a --cxxopt='--std=c++11' --verbose_failures for more information about [Tensorflow Mobile] (https://www.tensorflow.org/mobile/android_build)

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