From 76580ea1435bd735bf5fd153b285a8fdd59e52a6 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 16 Dec 2020 18:28:26 +0800 Subject: [PATCH] update c inference --- deploy/cpp_infer/readme.md | 6 +++--- deploy/cpp_infer/tools/config.txt | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/deploy/cpp_infer/readme.md b/deploy/cpp_infer/readme.md index 72969366..66302a01 100644 --- a/deploy/cpp_infer/readme.md +++ b/deploy/cpp_infer/readme.md @@ -103,17 +103,17 @@ make inference_lib_dist 更多编译参数选项可以参考Paddle C++预测库官网:[https://www.paddlepaddle.org.cn/documentation/docs/zh/advanced_guide/inference_deployment/inference/build_and_install_lib_cn.html](https://www.paddlepaddle.org.cn/documentation/docs/zh/advanced_guide/inference_deployment/inference/build_and_install_lib_cn.html)。 -* 编译完成之后,可以在`build/fluid_inference_install_dir/`文件下看到生成了以下文件及文件夹。 +* 编译完成之后,可以在`build/paddle_inference_install_dir/`文件下看到生成了以下文件及文件夹。 ``` -build/fluid_inference_install_dir/ +build/paddle_inference_install_dir/ |-- CMakeCache.txt |-- paddle |-- third_party |-- version.txt ``` -其中`paddle`就是之后进行C++预测时所需的Paddle库,`version.txt`中包含当前预测库的版本信息。 +其中`paddle`就是C++预测所需的Paddle库,`version.txt`中包含当前预测库的版本信息。 #### 1.2.2 直接下载安装 diff --git a/deploy/cpp_infer/tools/config.txt b/deploy/cpp_infer/tools/config.txt index 40beea3a..d5faa7cc 100644 --- a/deploy/cpp_infer/tools/config.txt +++ b/deploy/cpp_infer/tools/config.txt @@ -11,7 +11,12 @@ max_side_len 960 det_db_thresh 0.3 det_db_box_thresh 0.5 det_db_unclip_ratio 2.0 -det_model_dir ./inference/det_db +det_model_dir ./inference/ch__ppocr_mobile_v2.0_det_infer/ + +# cls config +use_angle_cls 0 +cls_model_dir ./inference/ch_ppocr_mobile_v2.0_rec_infer/ +cls_thresh 0.9 # rec config rec_model_dir ./inference/rec_crnn -- GitLab