Closed tangning9495 closed 2 years ago
maybe the scores length and the label length are not equal
maybe the scores length and the label length are not equal
I try to debug the apk and get the bug info:
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.pytorch.demo.objectdetection/org.pytorch.demo.objectdetection.MainActivity}: com.facebook.jni.CppException: PytorchStreamReader failed locating file bytecode.pkl: file not found ()
but I can't find the real problem. You mean that the results is defferent from the length of classes in classes.txt file? I rewrite the new classes file, also use the original yolov5s.pt and original txt file, it always crash when I run the apk.
maybe the scores length and the label length are not equal
I try to debug the apk and get the bug info:
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.pytorch.demo.objectdetection/org.pytorch.demo.objectdetection.MainActivity}: com.facebook.jni.CppException: PytorchStreamReader failed locating file bytecode.pkl: file not found ()
but I can't find the real problem. You mean that the results is defferent from the length of classes in classes.txt file? I rewrite the new classes file, also use the original yolov5s.pt and original txt file, it always crash when I run the apk.
hey, i met this issue also. i solved it in following ways:
I run the object detection demo. Package the apk and install apk on device, but it always crashed where I run it on Android VM or a real phone. Anybody can help me? It's my first time to develop android app.