Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PaddleLite deploy lite PaddleOCR core dump #6195

Closed
idreamerhx opened this issue May 31, 2021 · 2 comments
Closed

PaddleLite deploy lite PaddleOCR core dump #6195

idreamerhx opened this issue May 31, 2021 · 2 comments

Comments

@idreamerhx
Copy link

idreamerhx commented May 31, 2021

Hi,

PaddlePaddle/PaddleOCR#2962 (comment)

I viewed PaddleOCR/deploy/lite code, and I confirm this is not a bug of PaddleOCR. Maybe this issue relates to PaddleLite whhile loading rec model.

Models are downloaded from tutorials.
https://github.com/PaddlePaddle/PaddleOCR/blob/f88897602f0af5e902bbf6fd5a4a87f3c51d3ad0/doc/doc_en/models_list_en.md

ch_ppocr_mobile_v2.0_cls_opt.nb -> /opt/paddle-models/ocr/ch_ppocr_mobile_v2.0_cls_opt.nb
ch_ppocr_mobile_v2.0_cls_slim_opt.nb -> /opt/paddle-models/ocr/ch_ppocr_mobile_v2.0_cls_slim_opt.nb
ch_ppocr_mobile_v2.0_det_opt.nb -> /opt/paddle-models/ocr/ch_ppocr_mobile_v2.0_det_opt.nb
ch_ppocr_mobile_v2.0_det_slim_opt.nb -> /opt/paddle-models/ocr/ch_ppocr_mobile_v2.0_det_slim_opt.nb
ch_ppocr_mobile_v2.0_rec_opt.nb -> /opt/paddle-models/ocr/ch_ppocr_mobile_v2.0_rec_opt.nb
ch_ppocr_mobile_v2.0_rec_slim_opt.nb -> /opt/paddle-models/ocr/ch_ppocr_mobile_v2.0_rec_slim_opt.nb

PaddleOCR branch: release/2.1
PaddleLite branch: origin/release/v2.9

[root@firefly lite]# ./ocr_db_crnn models/ch_ppocr_mobile_v2.0_det_opt.nb models/ch_ppocr_mobile_v2.0_cls_opt.nb models/ch_ppocr_mobile_v2.0_rec_opt.nb data/imgs/11.jpg data/ppocr_keys_v1.txt
[I 5/31 17:48:50.456 ...opt/Paddle-Lite/lite/core/device_info.cc:1097 Setup] ARM multiprocessors name:
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1098 Setup] ARM multiprocessors number: 6
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 0, max freq: 1512, min freq: 1512, cluster ID: 1, CPU ARCH: A53
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 1, max freq: 1512, min freq: 1512, cluster ID: 1, CPU ARCH: A53
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 2, max freq: 1512, min freq: 1512, cluster ID: 1, CPU ARCH: A53
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 3, max freq: 1512, min freq: 1512, cluster ID: 1, CPU ARCH: A53
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 4, max freq: 2016, min freq: 2016, cluster ID: 0, CPU ARCH: A72
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1100 Setup] ARM multiprocessors ID: 5, max freq: 2016, min freq: 2016, cluster ID: 0, CPU ARCH: A72
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1106 Setup] L1 DataCache size is:
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 32 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 32 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 32 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 32 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 32 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1108 Setup] 32 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1110 Setup] L2 Cache size is:
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
[I 5/31 17:48:50.457 ...opt/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1112 Setup] 512 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1114 Setup] L3 Cache size is:
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 0 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 0 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 0 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 0 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 0 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1116 Setup] 0 KB
[I 5/31 17:48:50.458 ...opt/Paddle-Lite/lite/core/device_info.cc:1118 Setup] Total memory: 1964844KB
[W 5/31 17:48:50.531 ...e-Lite/lite/model_parser/model_parser.cc:882 LoadModelFbsFromFile]
warning: the version of opt that transformed this model is not consistent with current Paddle-Lite version.
version of opt:6010b5f
version of current Paddle-Lite:8559ec60
[W 5/31 17:48:50.608 ...e-Lite/lite/model_parser/model_parser.cc:882 LoadModelFbsFromFile]
warning: the version of opt that transformed this model is not consistent with current Paddle-Lite version.
version of opt:6010b5f
version of current Paddle-Lite:8559ec60
[W 5/31 17:48:50.643 ...e-Lite/lite/model_parser/model_parser.cc:882 LoadModelFbsFromFile]
warning: the version of opt that transformed this model is not consistent with current Paddle-Lite version.
version of opt:6010b5f
version of current Paddle-Lite:8559ec60
[I 5/31 17:48:50.933 ...ddle-Lite/lite/kernels/arm/conv_direct.h:207 PrepareForRun] param.filter:
[I 5/31 17:48:51.282 ...ddle-Lite/lite/kernels/arm/conv_direct.h:207 PrepareForRun] param.filter:
[I 5/31 17:48:51.345 ...ddle-Lite/lite/kernels/arm/conv_direct.h:207 PrepareForRun] param.filter:
Segmentation fault

@paddle-bot-old
Copy link

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

@idreamerhx idreamerhx changed the title PaddleLite deploy lite core dump PaddleLite deploy lite PaddleOCR core dump May 31, 2021
@idreamerhx
Copy link
Author

PaddleOCR replied me and this works now.
the command usage of ocr_db_crnn confused and makes me passed models in wrong order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant