hunglc007 / tensorflow-yolov4-tflite

YOLOv4, YOLOv4-tiny, YOLOv3, YOLOv3-tiny Implemented in Tensorflow 2.0, Android. Convert YOLO v4 .weights tensorflow, tensorrt and tflite
https://github.com/hunglc007/tensorflow-yolov4-tflite
MIT License
2.23k stars 1.24k forks source link

can't run program on android oreo os #431

Open adamf0 opened 2 years ago

adamf0 commented 2 years ago

can't run program on android os oreo(8.1) but program can run on android os marshmallow(6.0). error is given in the log as follows. 2022-03-10 19:47:08.264 29063-30043/org.tensorflow.lite.examples.detection E/AndroidRuntime: FATAL EXCEPTION: Thread-2 Process: org.tensorflow.lite.examples.detection, PID: 29063 java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: Next operations are not supported by GPU delegate: EXP: Operation is not supported. SPLIT_V: Operation is not supported. SUB: Expected 2 input tensor(s), but node has 1 runtime input(s). First 1 operations will run on the GPU, and the remaining 692 on the CPU. OpenCL library not loaded - dlopen failed: library "libOpenCL-pixel.so" not found Falling back to OpenGL TfLiteGpuDelegate Invoke: ToTensorConverter: input data size does not match expected size at org.tensorflow.lite.NativeInterpreterWrapper.run(Native Method) at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:154) at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:314) at org.tensorflow.lite.examples.detection.tflite.YoloV4Classifier.getDetectionsForFull(YoloV4Classifier.java:391) at org.tensorflow.lite.examples.detection.tflite.YoloV4Classifier.recognizeImage(YoloV4Classifier.java:543) at org.tensorflow.lite.examples.detection.tflite.YoloV4Classifier.recognizeImage(YoloV4Classifier.java:62) at org.tensorflow.lite.examples.detection.ScanActivity.lambda$onCreate$4$ScanActivity(ScanActivity.java:104) at org.tensorflow.lite.examples.detection.-$$Lambda$ScanActivity$mX0cOFJlxxVMt9N0Q-MxTwHJVJI.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:764)

I've tried using yolov4 tflite and yolov4 tflite float16 no progress at all. please help solve my problem.