-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TFL detect app getting crashed with an error for ssd mobilenet v2 model trained for custom dataset. Please help me out #281
Comments
we don't actually support model built by TFlite. |
Thanks for fast response , After trying to get output from optimized graph from webcam I got this following error: $ python3 Object_detection_webcam.py During handling of the above exception, another exception occurred: Traceback (most recent call last): |
1stly the error comes when your local tf local the frozen pb file, I observed something similar #77, but your case seems very different. I guess this may caused by TF compatibly. Which version of TF you export the file and what version of TF you are running the python script? 2ndly, from the command line, seems you are trying to convert a model of object detection, which is not well supported by the converter tool, there are pretty much gaps (on either onnx spec or converter logic) before we can get it fully converted and runnable. |
Voila..!! I have successfully solved this issue and hence closing the issue |
too bad about the combability between different TF build. so object detection logic is converted? I cannot believe.... anyway, this is cool. |
|
I am facing the same error, can you please let me know what exactly you did to make the error go away. Will be extremely grateful to you for your reply. |
This is the error I get after app gets crashed
java.lang.IllegalArgumentException: Cannot convert between a TensorFlowLite buffer with 1080000 bytes and a ByteBuffer with 270000 bytes.
at org.tensorflow.lite.Tensor.throwExceptionIfTypeIsIncompatible(Tensor.java:251)
at org.tensorflow.lite.Tensor.setTo(Tensor.java:110)
at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:145)
at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:275)
at org.tensorflow.demo.TFLiteObjectDetectionAPIModel.recognizeImage(TFLiteObjectDetectionAPIModel.java:193)
at org.tensorflow.demo.DetectorActivity$3.run(DetectorActivity.java:247)
at android.os.Handler.handleCallback(Handler.java:742)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.os.HandlerThread.run(HandlerThread.java:61)
The text was updated successfully, but these errors were encountered: