Skip to content
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

Detect button crash #486

Open
akashhedaoo2051 opened this issue Nov 10, 2023 · 0 comments
Open

Detect button crash #486

akashhedaoo2051 opened this issue Nov 10, 2023 · 0 comments

Comments

@akashhedaoo2051
Copy link

akashhedaoo2051 commented Nov 10, 2023

I forked from url https://github.com/haroonshakeel/tensorflow-yolov4-tflite. I build app but, when I click on detect and camera app crashes. Below are the crash logs. Please try to help if possible.

FATAL EXCEPTION: Thread-3
Process: org.tensorflow.lite.examples.detection, PID: 16013
java.lang.IllegalArgumentException: Cannot copy between a TensorFlowLite tensor with shape [1, 2535, 4] and a Java object with shape [1, 10647, 4].
at org.tensorflow.lite.Tensor.throwIfShapeIsIncompatible(Tensor.java:412)
at org.tensorflow.lite.Tensor.throwIfDataIsIncompatible(Tensor.java:369)
at org.tensorflow.lite.Tensor.copyTo(Tensor.java:247)
at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:166)
at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:314)
at org.tensorflow.lite.examples.detection.tflite.YoloV4Classifier.getDetectionsForFull(YoloV4Classifier.java:390)
at org.tensorflow.lite.examples.detection.tflite.YoloV4Classifier.recognizeImage(YoloV4Classifier.java:542)
at org.tensorflow.lite.examples.detection.tflite.YoloV4Classifier.recognizeImage(YoloV4Classifier.java:61)
at org.tensorflow.lite.examples.detection.MainActivity.lambda$onCreate$1$MainActivity(MainActivity.java:52)
at org.tensorflow.lite.examples.detection.-$$Lambda$MainActivity$LY74jRIssqCKTCIXoueLUBqMOX4.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant