All Questions
Tagged with tensorflow-lite dart
29 questions
2
votes
1
answer
137
views
How to preprocess an image to match TFLite model input shape [1, 640, 640, 3] in Flutter?
Problem:
I am working on a Flutter project where I need to run a TensorFlow Lite (TFLite) object detection model. The model has specific input and output shape requirements, and I am encountering ...
0
votes
0
answers
70
views
Flutter/Tensorflow missmatching shapes error
I'm making a flutter app running a tensorflow Lite model. I got the following error:
Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 2] to a Java object with shape [1, 215].
...
0
votes
1
answer
494
views
Issue with Tensorflow Interpreter in IOS release build
I am passing the tflite file to interpreter but it return nothing. This is only happening when i download the IOS build from test flight. Running app with IDE works fine.
tfl.Interpreter? interpreter =...
0
votes
1
answer
844
views
Flutter TFLite model keeps outputting the same result
I am building a CNN classification model using tensorflow and python. The model has an input shape of [1, 50, 7] consisting the first column of timestamp, and sensor values for the rest of the columns....
2
votes
2
answers
463
views
I am trying to make an object detection app on flutter but it keeps crashing as soon as i press the button to open camera
I have been trying to make a flutter app which detects objects and puts bounding boxes around them. First when i got the camera feed it was working fine but when i loaded the model and tried to run it,...
0
votes
0
answers
151
views
Why does tflite not do any classification?
I wanted to use tflite in my Flutter app to show classification of a chosen image. However, when I run my program and select any image, there is no output from the Tflite.runModelOnImage. Here's the ...
0
votes
1
answer
509
views
Modifying Dart pub-cache folders Flutter SDK
I am following these instructions to add tensorflow lite to my flutter project. I am directed to add a folder to ~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ios/. ...
0
votes
1
answer
201
views
Is there a way to implement batch classification in Flutter with Tflite?
I want to classify multiple images iteratively, I tried it with
Future pickImages() async {
final List<XFile>? images = await ImagePicker().pickMultiImage();
if (images == null) return;
images....
2
votes
1
answer
1k
views
Build failed with an exception. A problem occurred evaluating project ':tflite'
I am currently working on a Flutter application that I want to classify using a tflite model. I updated the gradle file but the result still did not change. I am open to the ideas of people who have ...
1
vote
1
answer
703
views
how to run tensorflow lite movenet lightning model with flutter?
TFLite (movenet/multipose/lightning/tflite/float16)
I have loaded the model successfully but whenever I tried to run it... it just crashes the
app.
here is the code for loading and running the model:
...
0
votes
2
answers
2k
views
TensorFlowLite tensor with type UINT8 and a Java object of type [[F (which is compatible with the TensorFlowLite type FLOAT32)
I was creating a mobile app that can recognize images using flutter and I got this runtime error when testing the app.
Caused by: java.lang.IllegalArgumentException: Cannot convert between a ...
0
votes
0
answers
629
views
Flutter - Image to File Conversion Issues
Question in Short:
How to convert the Image data to File, which will be used on tflite classification. Using https://pub.dev/packages/image library
Details:
I'm dealing with a flutter app, where image ...
0
votes
0
answers
336
views
How to run object detection on single image using flutter
I am currently using the forked version of https://github.com/am15h/object_detection_flutter.git , which is https://github.com/TexMexMax/object_detection_flutter.git .
Can someone help me out in ...
0
votes
0
answers
961
views
The plugin `tflite` uses a deprecated version of the Android embedding
I'm using :
Flutter : 2.5.3 (Stable)
Dart 2.14.4
Android Studio V2020.3.1 Patch 3
I was trying to download tflite and camera Packages and I got an error telling me to migrate the project to android ...
9
votes
0
answers
4k
views
Unable to load tensorflow tflite model in android studio
I have trained a TensorFlow model and convert it to TensorFlow lite using the below code:
# Convert the model
import tensorflow as tf
import numpy as np
# path to the SavedModel directory is ...