PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.96k stars 1.61k forks source link

Android部署 #7530

Closed YinZhang98 closed 9 months ago

YinZhang98 commented 3 years ago

请问一下,如何让PaddleOCR的androi-demo使用opencl加速?

paddle-bot-old[bot] commented 3 years ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

mjp9527 commented 3 years ago

您好,PaddleOCR相关的问题可以在 https://github.com/PaddlePaddle/PaddleOCR/issues 这里提问, 如果您使用的是paddle-lite,首先转模型时需要将--valid_targets=opencl,编译库时with_opencl=ON或者下载预编译库:https://paddle-lite.readthedocs.io/zh/release-v2.10_a/quick_start/release_lib.html ; 使用demo时如mobilenetv1_light_api.c仅需将accelerate_opencl设置为1即可: https://github.com/PaddlePaddle/Paddle-Lite/blob/develop/lite/demo/cxx/mobile_light/mobilenetv1_light_api.cc;