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

opengl / opencl issue on old androids #335

Open mhyeonsoo opened 3 years ago

mhyeonsoo commented 3 years ago

Hi,

I have implemented the model and tested bunch of android devices. The issue I've met is about OpenGL and OpenCL.

when I run the app at certain devices that seems like not having OpenGL, below error is shown.

ava.lang.RuntimeException: Unable to start activity ComponentInfo{org.tensorflow.lite.examples.detection/org.tensorflow.lite.examples.detection.MainActivity}: java.lang.RuntimeException: java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: Following operations are not supported by GPU delegate:
    DEQUANTIZE: 
    EXP: Operation is not supported.
    SPLIT: Operation is not supported.
    SPLIT_V: Operation is not supported.
    99 operations will run on the GPU, and the remaining 106 operations will run on the CPU.
    Can not open OpenCL library on this device - dlopen failed: library "libOpenCL.so" not found
    Falling back to OpenGL
    TfLiteGpuDelegate Init: OpenGL ES 3.1 or above is required to use OpenGL inference.

Is there anyone who also met this and solve?

Thank you