Questions tagged [tflite]
269 questions
0
votes
0 answers
Custom tflite model crash when an image is loaded in for prediction. (Flutter)
I had created an tflite model using teachable machine and deploy into an mobile application (flutter).
Everything is going fine until I realise there is a problem when I pass in an image into the model and an error appear shown in image below. This…

dlhs
- 1
0
votes
0 answers
Take picture when specific object detected
I'm trying to make my app take a picture when certain objects is detected. In this case, the object is "Person" and still can't get it to work. The app detects the object but doesn't take a picture. I'm using TFlite for this app.
Here's my code to…

Nandatto
- 3
- 2
0
votes
1 answer
Is there documentation for TfLiteTensor available
In the official documentation of tflite API for C++, many methods have TfLiteTensor or a pointer to such type as return value (e.g., input_tensor() method.. Is there any reference to which attributes and methods are available for TfLiteTensor…

matko031
- 53
- 7
0
votes
0 answers
reshape image on flatter deep learning app
I am working on a flatter app to classify plant diseases using deep learning. When I take a picture to classify the disease, it appears with an error because the model I trained deals with 4D image, and the image I took is 3D. Is there a suggestion…
0
votes
0 answers
Cannot copy from a TensorFlowLite tensor (StatefulPartitionedCall:1) with shape [1, 25] to a Java object with shape [1, 10, 4]
I am trying to create a mobile app object detection using a custom model that I created when I try to use my model I get this error.
E/AndroidRuntime: FATAL EXCEPTION: inference
Process: com.objdetector, PID: 8767
…
0
votes
1 answer
Error creating interpreter for tflite model on Android phone GPU but fine on CPU - do GPU and CPU support same set of tflite model operators?
I am trying to run a tflite model in flutter (using the tflite_flutter package) on an Android phone and it successfully runs on the phone CPU. But when I use the phone GPU I get the error below that it cannot create the model interpreter.
I/tflite …

Ross
- 265
- 1
- 3
- 13
0
votes
0 answers
Testing tflite model in Raspberry pi 4
I have a pretrained tensor flow model; I converted it to tflite to make inferences on Rpi4. Now, I want to test the model on the same original test data saved in a (.csv) file. How can I do that using tflite. Interpreter?
I have tried testing the…
0
votes
0 answers
Using a custom tflite model on android
I tried using one of the examples I saw on GitHub and used it. It works perfectly fine but when I try to change the tflite model that came with it, It will always crashes and give this error.
E/AndroidRuntime: FATAL EXCEPTION: inference
Process:…
0
votes
1 answer
YOLOv5 - Convert to tflite but make scores type float32 instead of int32
I am trying to use a custom object detection model trained with YOLOv5 converted to tflite for an Android app (using this exact TensorFlow example).
The model has been converted to tflite by using the YOLOv5 converter like this:
python export.py…

Ignas Mikolaitis
- 3
- 2
0
votes
0 answers
TFlLite didn't find op for builtin opcode 'SELECT' version '3'
I have a TFLite model converted from Jax:
converter = tf.lite.TFLiteConverter.experimental_from_jax(
[serving_func], [[("encoder_inputs", encoder_inputs), ("decoder_inputs", decoder_inputs), ("primings",…

hlidka
- 2,086
- 1
- 15
- 14
0
votes
0 answers
Dart/Flutter: How to merge a list of image buffers [image0.buffer, image1.buffer,..., imageN-1.buffer] into one object buffer to give to tflite model?
I am using the tflite_flutter package https://pub.dev/packages/tflite_flutter to give a TFlite AI model a set of images from the live camera feed. I'm starting with their example given on their site that shows how to give a single image from the…

Ross
- 265
- 1
- 3
- 13
0
votes
0 answers
The plugin 'tflite' uses a deprecated version of the Android embedding
I'm using the tflite plugin for Flutter, but when it shows me this when I run it:
The plugin tflite uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin…

Meo11
- 3
- 4
0
votes
1 answer
Convert TF Object Detection API model to TFLite
Please help in following iam really stuck when I converting with
following code
!python models/research/object_detection/export_tflite_graph_tf2.py \
--trained_checkpoint_dir {'/content/drive/MyDrive/customTF2/training'} \
--output_directory…

theekshana1987
- 3
- 2
0
votes
1 answer
How generate processed features (on which the model was trained) from raw features?
I am building a project to classify different types of vibrations using edge impulse studio. I collected data from my sensor and trained the model and downloaded its .tflite file from the dashboard:
tflite file from edge impulse
To load the model…

Valeed
- 1
- 1
0
votes
1 answer
How to change Yolov5 tflite model output to float32?
Here You can see the StatefulPartitionedCall:3 gives the int32 but I need to have it all in float32, Is there any way to get 4 float32 tflite models from Yolov5?

Muntakimur Rahaman
- 169
- 1
- 9