jackweiwang / Android-FaceDetection-UltraNet-MNN

Android face detection 30+ FPS, pretrained weight 1MB.
MIT License
118 stars 36 forks source link

How to use openCL or openGL? #16

Open haoyunjixiang opened 4 years ago

haoyunjixiang commented 4 years ago

when I set sch_config.type = (MNNForwardType)MNN_FORWARD_OPENCL get error.

2020-08-06 17:20:00.360 5393-5393/? A/DEBUG: #00 pc 0001d458 /data/app/com.facesdk-g1tWUdusJJNcF4watyMQ7w==/lib/arm/libMNN.so (MNN::Interpreter::resizeTensor(MNN::Tensor, std::ndk1::vector<int, std::ndk1::allocator> const&)+40) (BuildId: 3011315747c81ab99070c67313433009112c4630) 2020-08-06 17:20:00.361 5393-5393/? A/DEBUG: #01 pc 0000d13b /data/app/com.facesdk-g1tWUdusJJNcF4watyMQ7w==/lib/arm/libfacedetect.so (Inference_engine::infer_img(unsigned char, int, int, int, int, int, Inference_engine_tensor&)+326) (BuildId: 8260643125673747a779f569c3c3b3a3c3fff245) 2020-08-06 17:20:00.361 5393-5393/? A/DEBUG: #02 pc 00007dc5 /data/app/com.facesdk-g1tWUdusJJNcF4watyMQ7w==/lib/arm/libfacedetect.so (UltraFace::detect(unsigned char*, int, int, int, std::ndk1::vector<FaceInfo, std::ndk1::allocator>&)+256) (BuildId: 8260643125673747a779f569c3c3b3a3c3fff245) 2020-08-06 17:20:00.361 5393-5393/? A/DEBUG: #03 pc 00005b33 /data/app/com.facesdk-g1tWUdusJJNcF4watyMQ7w==/lib/arm/libfacedetect.so (Java_com_facesdk_FaceSDKNative_FaceDetect+414) (BuildId: 8260643125673747a779f569c3c3b3a3c3fff245)

jackweiwang commented 4 years ago

For opencl , you'd better test it correctly on your PC first.