tensorflow-lite Questions

1

I am trying to covert a tensorflow (LSTM) based model to tensorflow lite using tensorflow TOCO and tf_convert tool, but the tensorflow lite model after conversion is around 245MB where as the origi...
Rooky asked 27/8, 2018 at 12:55

3

Solved

I was wondering if there is a way to know the list of inputs and outputs for a particular node in tflite? I know that I can get input/outputs details, but this does not allow me to reconstruct the ...

4

Solved

I have generated a .tflite model based on a trained model, I would like to test that the tfilte model gives the same results as the original model. Giving both the same test data and obtaining the...
Urmia asked 8/6, 2018 at 16:8

9

Solved

I've the following line in my gradle android project inside the module build.gradle dependencies { // a lot of dependencies implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nigh...
Poacher asked 16/6, 2021 at 10:1

2

I'm looking for ways to convert a mask (a Height x Width boolean image) into a series of bounding boxes (see example picture below, which I hand-drew), with boxes encircling the "islands of tr...

4

Solved

As I detect my tflite file, the problem happened. The command I wrote. python detect.py --weights ./checkpoints/yolov4-tiny-tf.tflite --size 416 --model yolov4 --image D:\yolov4\training\tensorflow...
Allusive asked 10/6, 2021 at 12:30

10

I wanted to use my keras trained model in android studio. I got this code on internet to convert my code from keras to tensorflow-lite. But when i tried code i got this error: OSError: SavedModel ...
Backlash asked 13/6, 2020 at 10:53

4

I am trying to use this Google's example, but with my own dataset: https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_customization/demo/text_classification.ipynb I...

3

Solved

The current version of tflite-runtime is 2.11.0: https://pypi.org/project/tflite-runtime/ Here is a testing for downloading the tflite-runtime to the tmp folder: mkdir -p /tmp/test cd /tmp/test ec...
Nonconformity asked 31/12, 2022 at 9:51

2

Solved

I have a custom CNN model, and I have converted it to .tflite format and deployed it on my Android app. However, I can't figure out how to do batching while inference with tensorflow lite. From t...
Demitria asked 12/10, 2018 at 16:41

3

Solved

Here is a simple code to reproduce the error: import os os.environ["CUDA_VISIBLE_DEVICES"]="-1" import numpy as np from keras.models import Sequential from keras.layers import Conv1D, Flatten, De...
Bellhop asked 15/6, 2020 at 10:50

2

I am trying to convert a saved_model from TensorFlow Object Detection Model Zoo to a tflite file. The model I am using is ssd_mobilenet_v2_oid_v4_2018_12_12. So I used export_tflite_ssd_graph.py: ...

1

So I am trying to use Tensorflow Lite on an android app. The following code is called when the camera captures an image: override fun onActivityResult(requestCode: Int, resultCode: Int, data: Inten...
Lees asked 2/11, 2021 at 14:34

5

I'm trying to run inference using tf.lite on an mnist keras model that I optimized by doing post-training-quantization according to this RuntimeError: There is at least 1 reference to internal dat...
Spancake asked 26/6, 2019 at 16:54

0

I have used this project from Github: https://github.com/nicknochnack/TFODCourse The project contains a model that can detect License Plate on a given Vehicle image. The Github repo also contains c...
Inharmonic asked 3/8, 2022 at 15:0

2

Solved

What I have: A trained recurrent neural network in Tensorflow. What I want: A mobile application that can run this network as fast as possible (inference mode only, no training). I believe ther...
Filar asked 9/3, 2018 at 12:37

2

Solved

I have 2 tflite models hosted as s3 objects on aws. In my react-typescript app, I am trying to load those models if the browser is opened on mobile. Else, the web app will use other more efficient ...

2

I was playing with tflite and observed on my multicore CPU that it is not heavily stressed during inference time. I eliminated the IO bottleneck by creating random input data with numpy beforehand ...

1

I have the Apple M1 Pro chip and cannot get my tensorflow project running. I followed the installation instructions from Apple's site. When I run pip install -r requirements.txt, all my python pack...
Senter asked 28/2, 2022 at 5:41

6

Solved

I'm trying to debug my tflite model, that uses custom ops. I've found the correspondence between op names (in *.pb) and op ids (in *.tflite), and I'm doing a layer-per-layer comparison (to make sur...
Intitule asked 1/11, 2018 at 22:1

2

If I want to implement a classifier using the sklearn library. Is there a way to save the model or convert the file into a saved tensorflow file in order to convert it to tensorflow lite later?

3

I'm trying to host a small model I have compiled down to a .tflite on AWS Lambda. Using either the python 3.6 or python 3.7 tflite wheel files available on the tensorflow website I zip up my packag...

4

I have a quantized tflite model that I'd like to benchmark for inference on a Nvidia Jetson Nano. I use tf.lite.Interpreter() method for inference. The process doesn't seem to run on the GPU as the...
Putput asked 23/7, 2019 at 19:9

0

I have a TensorFlow model on which I would like to perform post-training quantization. I am using C# for software and the device will be in c++ (where I will use tflite). It would be nice to have t...
Stylopodium asked 3/3, 2022 at 0:7

1

My android app have a need to read the text in a image and I am using the Firebase ML Kit for that purpose, it works well for the text which is in standard Roman script but it completely fails to r...

© 2022 - 2025 — McMap. All rights reserved.