Skip to main content

All Questions

Tagged with
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 ...
yousef sultan's user avatar
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]. ...
Stefan Shkenderov's user avatar
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 =...
Shaheer Ghouri's user avatar
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....
Cubelated's user avatar
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,...
Shahbaz1's user avatar
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 ...
Absdqqqq's user avatar
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/. ...
C RICH's user avatar
  • 513
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....
Tanishq Jaiswal's user avatar
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 ...
SlowDive99's user avatar
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: ...
Storm47's user avatar
  • 33
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 ...
Miguel Rosal's user avatar
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 ...
SoajanII's user avatar
  • 441
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 ...
Saty's user avatar
  • 1
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 ...
Matthew Nader's user avatar
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 ...
learner's user avatar
  • 959

15 30 50 per page