You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SSD model converted to tflite with a flag use_regular_nms=True doesnt work with tf-js tflite. Calling the model.predict function causes the web-page to freeze without returning any error or result. The same model works well on Android and PC/Python.
The same SSD model converted to tflite with a flag use_regular_nms=False work fine with tf-js tflite (but this model leads to a large number of false positives, so it is not suitable).
Is this an error or is the functionality not implemented? Is there any way to solve the problem?
Thank you for bringing this issue to our attention and could you please help us with your Github repo or code snippet to replicate the same behavior from our end. Thank you for your understanding and patience.
I apologize for the delayed response, could you please export TensorFlow Lite model with use_regular_nms=True and use_regular_nms=False and add as zip file format with your code snippet where you're trying to call the model.predict()function with @tensorflow/tfjs-tflite package & complete steps to replicate the same behavior from my end also ?
There are 2 tflite's in the attachment and the simplest script to check these models.
I noticed that despite the predict freeze (nms_true.tflite model), it continues to load the CPU.
Thank you helping with TensorFlow Lite models with use_regular_nms=True and use_regular_nms=False and I tried from my end and I'm also observing the same behaviour from my end also with TensorFlow Lite model with use_regular_nms=True so we'll have to dig more into this issue and will update you soon.
Here output log for reference with TensorFlow Lite model with use_regular_nms=False :
Here output log for reference with TensorFlow Lite model with use_regular_nms=True :
Thank you for bringing this issue to our attention, I really appreciate your valuable efforts and time. Thank you for your cooperation
Activity
gaikwadrahul8 commentedon Jan 9, 2024
Hi, @Jove125
Thank you for bringing this issue to our attention and could you please help us with your Github repo or code snippet to replicate the same behavior from our end. Thank you for your understanding and patience.
Jove125 commentedon Jan 9, 2024
Hi, @gaikwadrahul8
See code below.
I can export and attach both tflite's if you need: with use_regular_nms=True and use_regular_nms=False
gaikwadrahul8 commentedon Jan 11, 2024
Hi, @Jove125
I apologize for the delayed response, could you please export TensorFlow Lite model with
use_regular_nms=True
anduse_regular_nms=False
and add as zip file format with your code snippet where you're trying to call themodel.predict()
function with@tensorflow/tfjs-tflite
package & complete steps to replicate the same behavior from my end also ?Thank you for your cooperation and patience.
Jove125 commentedon Jan 11, 2024
Hi, @gaikwadrahul8
There are 2 tflite's in the attachment and the simplest script to check these models.
I noticed that despite the predict freeze (nms_true.tflite model), it continues to load the CPU.
nms.zip
gaikwadrahul8 commentedon Jan 12, 2024
Hi, @Jove125
Thank you helping with
TensorFlow Lite
models withuse_regular_nms=True
anduse_regular_nms=False
and I tried from my end and I'm also observing the same behaviour from my end also withTensorFlow Lite
model withuse_regular_nms=True
so we'll have to dig more into this issue and will update you soon.Here output log for reference with
TensorFlow Lite
model withuse_regular_nms=False
:Here output log for reference with
TensorFlow Lite
model withuse_regular_nms=True
:Thank you for bringing this issue to our attention, I really appreciate your valuable efforts and time. Thank you for your cooperation