All Questions
Tagged with tensorflow-lite python
579 questions
-1
votes
0
answers
14
views
Import tflite in Python
Successfully installed Tensorflow Lite 2.18 in an Python environment in Raspberry Pi Zero W following these directions:
https://pypi.org/project/tflite/
Having issue importing the package in a script ...
0
votes
2
answers
59
views
Saving and Loading Images for Tensorflow Lite
Planning on using Tensorflow Lite for image classification.
To test the model, using Fashion-MNIST database to create the model following a Tensorflow basic example from their website. Created and ...
0
votes
1
answer
39
views
How can I save a TFLite model with a fixed input shape after using interpreter.resize_input_tensor?
I am trying to run inference using the TFLite model of multipose-lightning-tflite-float16 distributed by movenet.
https://www.kaggle.com/models/google/movenet/tfLite
However, this model cannot be used ...
0
votes
0
answers
145
views
Implementing an ML model into an android app with tensorflow lite
So I am new to the domain of android app development.
I have been trying to implement my custom machine learning model designed for image super resolution into an android application. If i understand ...
0
votes
0
answers
26
views
Should I run tf-lite models on front-end or back-end on a Flutter app
I am building an app that uses a tf-lite model called MoveNet which recognizes 17 body key points, as well as my own tf-lite model on top of that (lets call it PoseClassifier) to classify poses based ...
1
vote
0
answers
54
views
How to Integrate ESP32-CAM with Chirale_TensorFlowLite for Al-Based Human Detection?
I am working on a project using an ESP32-CAM to detect humans and control appliances like a fan and a light based on Al inference. For this, I am using the Chirale_TensorFlowLite library to run a ...
1
vote
0
answers
31
views
How to set the name of a custom operator in TensorFlow Lite
I'm trying to create a custom operator in TFLite, wrapping up scipy's lfilter function. The goal being to bind it to its implementation in C++ when invoking the TFLite interpreter (from the equivalent ...
0
votes
0
answers
101
views
Why is my 8-bit quantized model slower than my 16-bit model?
I've quantized my neural network tensorflow model to both 8-bit and 16-bit precision to improve performance, expecting the 8-bit version to be faster due to reduced memory and computational ...
0
votes
0
answers
72
views
Issue with "IndexError: _Map_base::at" when convert a tensorflow model to tensorflow lite
I want to test the performance of the quantized tensorflow model .First, I need to quantize the model using tensorflow lite,and got the .tflite model.
When I converter a tensorflow model .h5 to ....
0
votes
1
answer
172
views
Quantization Aware Training: ValueError: `to_quantize` can only either be a keras Sequential or Functional model
I'm Trying to test Quantization Aware Training from TensorFlow Lite. The following source code creates an AI model (variable: model) trained with the MNIST dataset (just 1 epoch for testing purpose). ...
1
vote
0
answers
80
views
Problem loading TensorFlow Lite model into Android application
Problem loading TensorFlow Lite model into Android application.
I used many repositories as an example of an application with a .tflite format model (specifically for the segmentation task), they all ...
2
votes
1
answer
557
views
Failed building wheel for tflite-support
Using pip install tflite-support, this is the full output and error message:
Collecting tflite-support
Using cached tflite-support-0.1.0a1.tar.gz (390 kB)
Preparing metadata (setup.py) ... done
...
0
votes
2
answers
80
views
BytesRequired number of elements overflowed when Tensorflow Lite inferencing
I was trying to convert rtmpose body2d onnx file to tensorflow lite format from here https://github.com/open-mmlab/mmpose/tree/main/projects/rtmpose#body-2d
I was succesfully converting to saved model ...
2
votes
0
answers
184
views
Kernel crashes everytime when trying to convert tensorflow model into tflite model
I'm using jupyter notebook in vscode and running a virtual enviroment with python 3.10.12.
The python script is as follow:
import math
import numpy as np
import tensorflow as tf
from tensorflow.keras ...
0
votes
0
answers
49
views
How to determine the orientation of a marker with tensorflow lite
I want to get the orientation (in 3d space if possible) of a marker object in a video stream using tensorflow lite on a coral tpu. My marker looks like:
The marker will be sticked on various objects ...