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.89k stars 1.6k forks source link

使用mali gpu推理PPOCR 识别模型报错:...ite/kernels/opencl/conv_image_compute.cc:1784 Conv2d1x1opt] OpenCL error with code CL_INVALID_ARG_VALUE happened in file xxx/lite/kernels/opencl/conv_image_compute.cc at line 1784. Exiting. #10202

Open scangit opened 1 year ago

scangit commented 1 year ago

Paddle Lite 版本: develop commit: ec1eb861ea52b93bc124c25f998559f8b67f9489 Paddle OCR: https://github.com/PaddlePaddle/PaddleOCR/tree/release/2.3: https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_infer.tar

det模型能正常跑,ch_ppocr_mobile_v2.0_rec_infer.tar会报错。

复现步骤:

  1. 编译opt,并生成模型: ./opt --model_file=./ch_ppocr_mobile_v2.0_rec_infer/inference.pdmodel --param_file=./ch_ppocr_mobile_v2.0_rec_infer/inference.pdiparams --optimize_out=./ch_ppocr_mobile_v2.0_rec_slim_opt --valid_targets=opencl --optimize_out_type=naive_buffer --enable_fp16=true

  2. 编译opencl版本的libpaddle_light_api_shared.so。 ./lite/tools/build_linux.sh --arch=armv8 --with_cv=ON --with_extra=ON --with_opencl=ON

  3. 使用ppocr的ocr_db_crnn demo推理。 ./ocr_db_crnn ch_ppocr_mobile_v2.0_det_slim_opt.nb ch_ppocr_mobile_v2.0_rec_slim_opt.nb ch_ppocr_mobile_v2.0_cls_slim_opt.nb ./11.jpg ppocr_keys_v1.txt

报如下错误: [F 8/ 4 12:20:34.390 ...ite/kernels/opencl/conv_image_compute.cc:1784 Conv2d1x1opt] OpenCL error with code CL_INVALID_ARG_VALUE happened in file Paddle-Lite/lite/kernels/opencl/conv_image_compute.cc at line 1784. Exiting.

qili93 commented 5 months ago

请问您能发下“使用ppocr的ocr_db_crnn demo推理” 这个demo的文档链接吗?我们确认下具体问题,谢谢!