Questions tagged [tensorflow-lite]
TensorFlow Lite is a toolkit for Android and iOS that provides Machine Learning capabilities on-device.
2,192
questions
0
votes
0
answers
13
views
TFlite detection model showing the same label indices and scores for all images
Using the pretrained SSD Mobilenet v2 model from Tensorflow Model zoo, I trained it on a custom dataset based on three classes [Non-Defective, Defect-X, Defect-Y] for 30000 steps. I have followed the ...
1
vote
1
answer
22
views
ImportError: cannot import name 'object_detector' from 'mediapipe_model_maker' during initial import
I am trying to follow this tutorial here to train a tensorflow lite object detection model using mediapipe.
I set up the environment as described here using Anaconda.
I am using Pycharm on Windows and ...
0
votes
0
answers
12
views
Proper way of exporting TF models to TFLite to work with different input sizes
I am exporting my tensorflow model to TFLite. I want to be able to run the TFLite model on mobile device GPU with different input shapes.
For that, I was using the following code:
# tf model class
...
0
votes
0
answers
9
views
Duplicate Symbols when using pod "TensorFlowLite" and pod "MediaPipeTasksVision" on IOS
I am trying to use the new mediapipe Vision solution (handLandlmarker) with another custom ML model TFlite in my application, but when trying to add pod "MediaPipeTasksVision" it generate ...
0
votes
0
answers
22
views
TensorFlow Lite makefile for Texas Instruments CC1352P7 Board with ARM Cortex M4F multiprotocol
I am trying to use tensorflow lite to deploy a model on MCU Texas Instruments CC1352P7 having
ARM Cortex M4F protocol.
However, when trying to generate the makefile in my command line, I get the ...
-1
votes
0
answers
22
views
Predictive TensorFlow-lite model deployed on ESP32
How do i deploy a TensorFlow-lite model on ESP32 that takes the test dataset from the training testing split and predict future values based on the input?
I have trained an LSTM model for time series ...
1
vote
0
answers
24
views
Is There a Unified Approach to Extract Bounding Boxes and other for Different Object Detection Algorithms in TF lite?
I am creating an application where I couple different cameras to different neural networks to perform object detection using TensorFlow Lite. For now, I would like to use the YOLOv4 tiny, YOLOv8 small,...
0
votes
0
answers
23
views
How to use tensorflow (tflite) model maker with class weights
I am using the tflite model maker for Object Detection and I would really like to apply class weights to my training process to fight class imbalance. I am using the Efficient-Det-Lite model family.
...
-1
votes
0
answers
19
views
TensorFLow Lite C++ undefined reference to ~Implementer() [duplicate]
I am trying to run Tensorflow Lite C++ on Raspberry Pi4 as per this tutorial, but I get the following error when compiling from CodeBlocks:
/usr/include/c++/10/bits/unique_ptr.h:85: undefined ...
0
votes
0
answers
13
views
Python web server to query MySQL DB and test multiple Tensorflow models
I want to build a web-based application that a few people would use to process images and test Tensorflow / Tensorflow Lite models. The backend will be implemented in Python and needs to be able to:
...
0
votes
0
answers
16
views
How to test the cross-compiled tensorflow lite?
I want to deploy dnn models on nezha Linux SBC with Xuantie C906 core.
I cross-compile the tensorflow lite successfully.
export RISCVCC_PREFIX=/home/fcqiao/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2....
-1
votes
0
answers
38
views
TensorflowLite conversion to C++ for installing on hardware
I have a project where I need to use some Deep Learning models onto hardware by converting to C++. I have done this using the TensorFlowLite Library. However, while trying to test the code in a C++ ...
1
vote
2
answers
24
views
Using tensorflow model maker how to save checkpoints during training
I am using the TensorflowLite model maker and I would like to know how I can during training regularily save checkpoints so I can check the loss graphs with tensorboard. How is this done?
This ...
1
vote
0
answers
17
views
"The size of byte buffer and the shape do not match" erro in android studio with TensorFlow lite model
I have tensorflow lite modell for image classification. So I was importing that model to android studio for image classification.
So while I'm running the code below runtime error occurred,
java.lang....
-1
votes
0
answers
18
views
How to fix flex delegate error on Raspberry Pi
I am working on detecting people using wheelchairs, walkers, etc. I have been following this video on learning how to create and train a custom model and have successfully ran my custom model on my PC ...
0
votes
0
answers
30
views
What's the most efficient way to use an Android HardwareBuffer with tensorflow lite?
Basically I'm working on a react-native app that uses the react-native-vision-camera library for the camera component. The library provides an API for writing native frame processors on the native ...
0
votes
1
answer
47
views
Convert Tensorflow Lite output into an image C++
I have created a model for image segmentation in Python with the help of Tensorflow, which provides me with a mask as output.
In Python I can simply load the model over two lines and generate an ...
-1
votes
1
answer
31
views
Need help to make an Tensorflow Lite Object detection model for rotten apples
For a school project my teacher wanted me to make a model that can detect apples and rotten apples. Although having struggled with it a lot, I did managed to make one myself, yet it doesn't work well ...
0
votes
0
answers
19
views
Error while deploying ML model in Android Kotlin
My model takes images and a np.ndarray
Below is the Sample code generated by Android Studio in Kotlin language after importing my model.
val model = ConvertedModel.newInstance(context)
// Creates ...
0
votes
1
answer
56
views
Modify my Tensorflow Lite output to process and display video frames sequentially
I have this simple piece of code (from here) that applies a TensorfFlow Lite model on an input image (of size 480x270) and after processing, it shows the resulting image. Works fine although the ...
0
votes
0
answers
21
views
Android Studio can't import tensorflow lite model (cannot found ml package)
I'm trying to make an image classification in Android Studio using tensorflow tflite model. I have upload the model to the project like this
And the tflite file sample code said to use like this
But ...
0
votes
0
answers
14
views
LSTM Model Structure with Low Arena Size for TensorflowLite
I'm working on my project with Time Series Forecasting on ESP32. Seem like my model arena size is too big for ESP32 to predict the value.
I have tried optimize it based on the TensorflowLite document ...
-1
votes
0
answers
18
views
Is there a way to optimize the performance of my AI visualization script?
I have a Python script that loads a .tflite file, performs object detection on given images, and overlays bounding boxes on the detected objects to create new images. The script uses the "...
0
votes
0
answers
59
views
Undefined symbol: __libc_single_threaded on Jetson nano using tensorflow lite
I'm trying to run the raspberrypi tflite object detection model on my jetson nano. I installed all the required libraries and followed the setup on their github page, but I keep getting the error:
...
0
votes
1
answer
18
views
Google MLkit object Detection Bounding Boxes with Image Classification Model
So ive developed an application using google MlKit and its object detection api. One thing I noticed that the tflite image classification model that im using, ( TFLite (efficientnet/lite3/int8) ) only ...
1
vote
1
answer
56
views
Output image looks corrupt when using Tensorflow Lite in Android
I have this simple piece of code (from here) that applies a TensorfFlow Lite model on an input image (of size 480x270) and after processing, it shows the resulting image. The logic works when running ...
1
vote
0
answers
112
views
How to use tf.repeat and another built-in highlevel funcs on Dataset?
I want to do something like this code of NER task which will align WordPieces of word with tag of this word:
import tensorflow as tf
tokens = tf.ragged.constant([[4], [2, 5, 9]], dtype=tf.int32)
tags ...
0
votes
0
answers
68
views
How to integrate sentence transformer tflite model to android
I have a tflite version of the hugging face model sentence-transformers/all-MiniLM-L6-v2...
But i dont know how to shape the input and output tensor...basically the model gives encoding of a sentence ...
0
votes
0
answers
74
views
Integrating TensorFlow Lite Model with Android Studio: Output Tensor Differences
I'm new to TensorFlow Lite. I have a model converted from YOLOv5 with input and output like the one in this image, but I'm having trouble integrating it. I've seen sample code in Android Studio, but I ...
0
votes
1
answer
43
views
How can I implement "AI Virtual Furniture Staging" in a React Native app?
I want to implement AI Interior Designing in my Real Estate app built in react native.
I need functionality like apps MyRoom etc. OR websites like https://www.virtualstagingai.app/ OR https://decorai....
1
vote
0
answers
32
views
Is the tensorflow lite c library method for feed forward (TfLiteInterpreterInvoke(interpreter);) real-time safe with respect to audio callbacks?
In real-time audio software, any code that blocks the audio processing thread must be avoided at all costs, as it can cause glitches in the signal. This includes system calls on general-purpose ...
0
votes
0
answers
63
views
How to make Tensorflow Lite model run faster on Android
I was trying to run this official Tensorflow Lite repo (ESRGAN super resolution model) on Android using Android Studio. I imported the project and it runs smoothly. The repo is a bit old and uses ...
0
votes
0
answers
28
views
What is the internal Tensorflow Lite version used by ML Kit?
When converting Tensorflow models to Tensorflow Lite (.tflite files) format, it is very strongly advised to use the exact same Tensorflow Lite version for the conversion and for the inference on the ...
0
votes
0
answers
16
views
Symbol conflicts when integrating TensorFlowLiteTaskVision via CocoaPods and TensorFlowLiteBenchmarkC manually in iOS
I'm working on an iOS app where I aim to benchmark a custom TensorFlowLite model for image classification. I'm using two libraries:
TensorFlowLiteTaskVision added via CocoaPods for image ...
0
votes
0
answers
38
views
Custom Object Detection Model with Tensorflow
I'm training a custom model for my project. I'm working with this Colab. But I have some errors when i tried to create record files. I tried delete this files, but when i deleted it the error continue ...
0
votes
0
answers
149
views
Running tflite model on react native-expo android
I have a tfjs and tflite custom image classification model that I want to run on my Expo managed react native project
After a lot of research I found a library react native tflite fast but it only ...
0
votes
0
answers
31
views
Results are differing between trained model and exported model using TFLite model maker
I'm training a multi-class classifier using TF LITE MODEL MAKER examples and the results are differing between the model before and after exporting and the differences are poor from the exported model....
0
votes
0
answers
101
views
TensorflowLite error: Didn't find op for builtin opcode 'WHERE' version '1'
I would like to run the model that I made on the Arduino BLE 33 board(nRF52840)
while uploading to board using ArduinoIDE below massage appeared
Didn't find op for builtin opcode 'WHERE' version '1'. ...
0
votes
0
answers
22
views
When I converted the Keras Model to TFLite Model, then the input shape changed
I want use Classification on mobile environment, so converted Keras Model to TFlite model.
and I made a random value on Android studio using JAVA and put it on. but original (desktop) input was (4, 1, ...
1
vote
0
answers
47
views
Embedding Tensorflow Lite model in my simple Android app
I developed this simple camera app in Android to simply show the camera preview. I am new to Tensorflow Lite and would like to use a .tflite model in my app. Specifically, I need to embed this ...
0
votes
0
answers
27
views
QAT using TF2 and MobileNetV3-large for full integer quantization
I have a Google Colab file where I am attempting to transfer learn and fine tune a MobileNetV3-Large model for binary classification, followed by full integer quantization. My goal is to run the model ...
0
votes
0
answers
10
views
tflite equivalent for kernel = torch.FloatTensor or similar
When processing images,
Python torch can create Laplacian or Gaussian pyramids using
kernel = torch.FloatTensor or similar
ie with models, learning etc.
How can one do this with tflite as a precursor ...
0
votes
0
answers
50
views
Speed Detection using TensorFlow Lite in a Raspberry pi 4B
i'm trying to create a vehicle collision detection system for my thesis project but i need to detect the speed of objects and distance to calculate the possible collisions. i'm trying to create it ...
0
votes
1
answer
39
views
TensorFlow Lite converter representative_dataset for Conv2D on accelerometer data
I have a TensorFlow Keras model that looks something like this. Note that this model is too big to run on a microcontroller which is my end goal but this is a starting point. The end goal is to get ...
0
votes
0
answers
41
views
Segmentation fault when initializing a TFLite interpreter on one edge TPU, but no issue initializing it on another device, using the same model
I get a segmentation fault error when trying to initialize a TFLite interpreter on Edge TPU devices. Specifically, I have a Python script that uses the TFLite interpreter to load and execute models. I'...
0
votes
0
answers
33
views
I want to Implement the Image Searcher using the Tflite Searcher also full implementation with demo images are appreciated
Error in Terminal
: tensorflow/lite/util.cc BytesRequired number of elements overflowed.
E/tflite (31247): Node number 105 (AVERAGE_POOL_2D) failed to prepare.
E/flutter (31247): [ERROR:flutter/...
0
votes
0
answers
17
views
how do I quantize with dynamic range a fine-tuned mobilenet V2 model with new classification head
I have been trying all day to quantize a fine-tuned model I have so I can deploy it to an edge TPU device and I have had 0 success.
I have tried quantizing the model with many permutations of the code ...
0
votes
0
answers
20
views
Getting "Cannot copy to a TensorFlowLite tensor with 63984 bytes from a Java Buffer with 64000 bytes" error passing I/O TensorAudio to TFLite model
I am getting the following error while loading the input and output audio buffers to tensorflow-lite interpreter for inferencing. I am using the TensorAudio and TensorAudioFormat packages from the ...
0
votes
1
answer
304
views
Why am i not able to install tflite-model-maker?
I am trying to install tflite-model-maker on my Anaconda environment. By using this Input in my cmd.
pip install tflite-model-maker
But the installation ends with this error:
Getting requirements to ...
0
votes
0
answers
15
views
How to use YoLo4 custom model (yolov4-tflite)with input type float32 and detect object in iOS swift?
I like to integrate the custom yoLo4 model and detect the particular objects that are accessible through a model. I am unable to pass the float32 input type, get the interpreter, and detect the object....