Questions tagged [tflite]

269 questions
0
votes
0 answers

How does post-training quantization work?

I am currently interested in model quantization, especially that of post-training quantization of neural network models. I simply want to convert the existing model (i.e., TensorFlow model) using float32 weights into a quantized model with float16…
0
votes
0 answers

How do I convert the output tflite model into a bitmap in Kotlin APP?

I am trying to run a unet model that gives a binary mask as output on my kotlin mobile app. In the below code, 'image' is the bitmap, which is preprocessed by resizing, normalized and the normalized image is again converted to a bitmap. …
Iamnotperfect
  • 109
  • 1
  • 2
  • 11
0
votes
0 answers

how to convert a tflite fp32 model to int8 directly?

I have already had a tflite model, like 'model.TFLITE', and now I want to convert it to int8. Is there any convert funcs or tools to implement it? (tf.lite.TFLiteConverter only has from_savemodel,from_keras,from_func) (tf.lite.TFLiteConverter only…
Wang Yilan
  • 31
  • 3
0
votes
0 answers

A problem occurred evaluating project ':tflite'. Could not find method compile() for arguments [org.tensorflow:tensorflow-lite:+]

Tried to use converted tflite model to for realtime object detection app. Installed camera and tflite packages. But getting this error: A problem occurred evaluating project ':tflite'. Could not find method compile() for arguments…
0
votes
0 answers

Does tensorflow lite support training on iOS?

Can the TFLite training approach mentioned in the below blog post be deployed to iOS? Based on this article, "This new feature is available in TensorFlow 2.7 and later and is currently available for Android apps. (iOS support will be added in the…
Yayatcm
  • 193
  • 2
  • 3
  • 14
0
votes
0 answers

Can I quantize a tflite file?

I'm new to TensorFlow and started training my model in Google Collaboratory. After spending a few hours training my model, I was finally able to download the tflite file, and it's working great! The only issue I have with it is its speed. I've…
0
votes
0 answers

How to get JsonArray/JsonObject output from TFLite model in android (java)?

I am working on an app where I have to pass an image to my own TFLite model. It will then return me result containing different values. Input is an image Sample output is: [ { "points": { "left": -5.070770263671875, "top":…
Faizan Ahmad
  • 352
  • 4
  • 20
0
votes
0 answers

Face Recognition using google mlkit on flutter

enter image description hereI am trying to developing a face recognizing app in flutter.The problem is ,that i couldn't detect faces when changning the device orientation to landscape mode.But in potrait mode it work fine. link:…
0
votes
0 answers

Passing captured image between pages in flutter

I'm having problems with my code as I'm getting undefined_identifier errors. I'm trying to pass the image I captured from 'GeneratedGroup1Widget1.dart' using 'flutter_screenutils' to 'GeneratedResultsWidget.dart'. However, my route in 'main.dart'…
hatzuramen
  • 33
  • 3
0
votes
0 answers

Java tflite model is returning me back the same output for different inputs

I am building a sign language recognition using an InceptionV3 model which i have converted into a tflite model. This is the default model from the tflite file: Model4 model = Model4.newInstance(context); // Creates inputs for reference. …
tinylee
  • 53
  • 3
0
votes
0 answers

Why am I getting this error? valueerror: output tensor at index 0 is expected to have 3 dimensions, found 2

My project is based on object detection using tflite on raspberry pi4, the code works perfectly without the coral accelerator however when I try to speed the detection using google coral accelerator I get this error: (I run the code using google…
0
votes
0 answers

tflite uses a deprecated version of the Android embedding

I've used tflite package about one year ago and then it gone deprecated because of lack of android V2 embedding, then I used tfltie_flutter package but now its also seems deprecated giving error, The plugin `tflite_flutter` uses a deprecated version…
Shanu
  • 311
  • 2
  • 16
0
votes
0 answers

Failed to load dynamic library -tflite

I was trying to run a simple model created using teachable machine from google using tflite_flutter, followed the documentation in the package page. But the following error occurred Unhandled Exception: Invalid argument(s): Failed to load dynamic…
Shanu
  • 311
  • 2
  • 16
0
votes
0 answers

Tensorflow lite build for ARM9 32-bit architecture

i am trying to build tensor flow wheel file using Bazel for 32-bit ARM9 architecture. but Bazel will not support for 32-bit architecture .can someone help me in building wheel file(.whl) for 32-bit architecture. i tried to build custom tool chain…
0
votes
0 answers

How to change only the output shape of tf_saved_model?

I want to transpose the output shape of a graph in saved_model or tflite format. The current form looks like this.(.tflite) enter image description here I want to change the output of "partitionedcall:1" to [1,32,160,160], in this case do I need to…
Takana
  • 11
  • 2