-
Notifications
You must be signed in to change notification settings - Fork 287
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
rk3588平台,ocr demo运行不了 #373
Comments
编译脚本不能运行报的是什么错呢?我看您的log没有贴上来欸。 |
看报错信息,大概率应该是库和环境不匹配,可以尝试按照我们官方文档进行编译替换 https://www.paddlepaddle.org.cn/lite/v2.12/demo_guides/verisilicon_timvx.html |
在编译人体姿态的demo时,demo中用到的是paddle_full_api_shared库,运行出错,错误如下: 原码编译Paddle-lite出的库只有paddle_light_api_shared,修改为用paddle_light_api_shared库后编译出现以下错误,请帮助解答一下 |
上面报错的原因,是因为在 Paddle-Lite demo 中,如果使用的是 paddle_full_api_shared.so ,那么创建 predictor 的时候使用的是 cxxconfig;如果使用的是 paddle_light_api_shared.so,使用的是 mobileconfig,所以才会报 cxxconfig 的错误。解决这个问题后,你还要保证一下您使用的 opt 版本和 Paddle-Lite 版本是一致的,头文件也是要对应版本的,都 check 一下。另外也可以参考一下官方文档中的 demo,那个里面都比较详细。 |
另:如果是想在3588平台使用 cpu,Paddle-Lite 是支持的,但是如果是想使用 NPU,建议使用他们自己的离线工具进行部署,目前 Paddle-Lite 是不支持的。 |
/Paddle/Paddle-Lite-Demo/ocr/armlinux/shell/cxx/ppocr_demo# ./run.sh
[I 3/23 8: 1:40.683 ...dle/Paddle-Lite/lite/core/device_info.cc:283 get_cpu_arch] Unknow cpu arch: 3339
[I 3/23 8: 1:40.683 ...dle/Paddle-Lite/lite/core/device_info.cc:283 get_cpu_arch] Unknow cpu arch: 3339
[I 3/23 8: 1:40.683 ...dle/Paddle-Lite/lite/core/device_info.cc:283 get_cpu_arch] Unknow cpu arch: 3339
[I 3/23 8: 1:40.683 ...dle/Paddle-Lite/lite/core/device_info.cc:283 get_cpu_arch] Unknow cpu arch: 3339
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1330 Setup] ARM multiprocessors name:
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1331 Setup] ARM multiprocessors number: 8
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 0, max freq: 1800, min freq: 1800, cluster ID: 1, CPU ARCH: A55
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 1, max freq: 1800, min freq: 1800, cluster ID: 1, CPU ARCH: A55
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 2, max freq: 1800, min freq: 1800, cluster ID: 1, CPU ARCH: A55
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 3, max freq: 1800, min freq: 1800, cluster ID: 1, CPU ARCH: A55
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 4, max freq: 2352, min freq: 2352, cluster ID: 0, CPU ARCH: A-1
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 5, max freq: 2352, min freq: 2352, cluster ID: 0, CPU ARCH: A-1
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 6, max freq: 2352, min freq: 2352, cluster ID: 0, CPU ARCH: A-1
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1333 Setup] ARM multiprocessors ID: 7, max freq: 2352, min freq: 2352, cluster ID: 0, CPU ARCH: A-1
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1339 Setup] L1 DataCache size is:
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 32 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 32 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 32 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 32 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1341 Setup] 64 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1343 Setup] L2 Cache size is:
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 128 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 128 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 128 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 128 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1345 Setup] 512 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1347 Setup] L3 Cache size is:
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1349 Setup] 3072 KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1351 Setup] Total memory: 16053244KB
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1352 Setup] SVE2 support: 0
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1353 Setup] SVE2 f32mm support: 0
[I 3/23 8: 1:40.684 ...dle/Paddle-Lite/lite/core/device_info.cc:1354 Setup] SVE2 i8mm support: 0
./run.sh: line 6: 600959 Segmentation fault (core dumped) ./ppocr_demo ./models/ch_ppocr_mobile_v2.0_det_slim_opt.nb ./models/ch_ppocr_mobile_v2.0_rec_slim_opt. nb ./models/ch_ppocr_mobile_v2.0_cls_slim_opt.nb ./images/test.jpg ./test_img_result.jpg ./labels/ppocr_keys_v1.txt ./config.txt
编译脚本不能运行,修改如下:
git diff build.sh
diff --git a/ocr/armlinux/shell/cxx/ppocr_demo/build.sh b/ocr/armlinux/shell/cxx/ppocr_demo/build.sh
old mode 100644
new mode 100755
index 562e7d7..6cad9ee
--- a/ocr/armlinux/shell/cxx/ppocr_demo/build.sh
+++ b/ocr/armlinux/shell/cxx/ppocr_demo/build.sh
@@ -25,9 +25,9 @@ echo "make successful!"
cd ../../
if [ ! -d "./ppocr_demo" ]; then
mkdir ppocr_demo
-fils
+fi
-cp ./src/ppocr_demo ./ppocr_demo
+cp ./src/build/ppocr_demo ./ppocr_demo
The text was updated successfully, but these errors were encountered: