Questions tagged [tflite]
269 questions
0
votes
0 answers
tensorflow-lite model output shape isn't same as original model output shape
I'm comparing the performance of two models that I've trained.
The first model takes an input of size (1536, 512, 3), which represents 1536 windows of data with each window having 512 window size and 3 features.
The model's output shape is (1536,…

Amdj3dax
- 1
- 3
0
votes
0 answers
How to convert saved_model.pb into TFLITE correctly?
When i trained the ssd_mobilenetv2_fpnlite_320x320, and save it as saved_model.pb, it works fine, the bounding box appear with the label of the a bill, but when i try to deploy it in the latest version of Tensorflow object detection sample app,…

frncyyy
- 1
0
votes
1 answer
NullReferenceException: Tensorflow lite models in unity android builds
i imported the tensorflow lite plugin into untiy, im trying to intergrate an existing tflite model into my script but when i create the object, i get the error
"NullReferenceException: Object reference not set to an instance of an…

kentucky
- 1
0
votes
1 answer
The plugin Tflite uses a deprecated version of Android embedding
I have updated and tflite_flutter but still the gradle is not building.
tflite: ^1.1.2
tflite_flutter: ^0.9.1
The following this the error message I'm getting:
The plugin `tflite` uses a deprecated version of the Android
embedding.
To avoid…

Ahmed Shaikh
- 5
- 3
0
votes
0 answers
How to use the sentence embedding in the android app using tf-lite?
I am following the official guide in order to include a sentence embedding model into an android application. For the model weights it points towards the tf-hub link with weights provided from google.
Code there seems to be provided for C++…

fight2glory
- 57
- 2
- 9
0
votes
0 answers
Error in Converting PyTorch Model to ONNX format
I want to convert https://github.com/TencentARC/GFPGAN to ONNX format to use in Android App. After going through the procedure, it shows error (AttributeError: 'dict' object has no attribute 'modules').
Following is my code in Colab:
!pip install…

Hammad Ali Shah
- 363
- 4
- 12
0
votes
0 answers
getting error Interpreter busy while running tflite image segmentation modal in flutter
I/flutter (29838): PlatformException(Failed to run model, Interpreter busy, java.lang.RuntimeException: Interpreter busy
I/flutter (29838): at sq.flutter.tflite.TflitePlugin$TfliteTask.(TflitePlugin.java:450)
I/flutter (29838): at…
0
votes
0 answers
Flutter web and tflite machine learning custom model
i am facing trouble integrating my custom trained artificial intelligence image classifier model in my flutter web application. i have already converted and saved the model in tflite and labels.txt file, but tflite package documentation only show…
0
votes
0 answers
How to use and integrate the tflite model in Android Studio Kotlin?
I'm new to programming, especially in image recognition. Currently, I'm trying to create a customized image recognition system and I'm hoping you can help me :>
I've provided the code below which I found on YouTube, and I made some modifications to…

freyja
- 1
0
votes
0 answers
Error (Xcode): Framework not found TensorFlowLiteC Macos
I am getting an error as stated in the title. There was no such error when using windows. I'm new to macos, can you help with the issue?
dependencies:
flutter:
sdk: flutter
image_picker: ^0.8.6
collection: ^1.16.0
image: ^3.2.2
tflite_flutter:…
0
votes
0 answers
Mobile SSD models are expected to have exactly 4 outputs, found 8
**Im using sagemaker to train the data it has pretrained model
** -- “tensorflow-od1-ssd-resnet50-v1-fpn-640x640-coco17-tpu-8”
**For Training:
**
Create the SageMaker model instance. Note that we need to pass Predictor class when we deploy model…
0
votes
0 answers
I was trying to run an old flutter code in which it has Tflite has been used
while debugging I tried my code on the web which is working but I'm building an Android app so when I tried on the emulator it is given an error.
what should I do now?
Here is the repo link: https://github.com/LoftyDroid/Plant-Disease-Detector

Ahmed Shaikh
- 5
- 3
0
votes
0 answers
Is Flutter only support yolov2 tiny?
I was trying to make a custom object detector in real-time by Flutter. My custom object detector was done by "yolov5-s". When I build the app, it shows me an error:
Error
Caused by: java.lang.IllegalArgumentException: Cannot copy from a…

Md Mahadi Hasan Sany
- 129
- 1
- 1
- 12
0
votes
0 answers
Tensorflow Lite library is crashing in WASM library at 3rd inference
I have C++ code that I want to deploy as WASM library and this code contains TFLite library. I have compiled TFLite library with XNNPack support using Emscripten toolchain quite easy, so no issue there. I have a leight-weight convolution+dense model…

Eugene Alexeev
- 1,152
- 12
- 32
0
votes
0 answers
Adding delegate to tflite model produces segfault but cpu inference works
I am running a tflite model on android and as soon as i add any delegate like NNAPI, GPU or XNNPack (as far as i can tell) AllocateTensors throws a segfault error:
libc: A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18 in tid 27995…

CoderHD
- 1
- 2