forked from PaddlePaddle/PaddleOCR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ppocrv3 tipc & test=document_fix
- Loading branch information
1 parent
5cc7b13
commit 01aeda4
Showing
34 changed files
with
1,072 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
test_tipc/configs/ch_PP-OCRv3/model_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
===========================cpp_infer_params=========================== | ||
model_name:ocr_system_v3.0 | ||
use_opencv:True | ||
infer_model:./inference/ch_PP-OCRv3_det_infer/ | ||
infer_quant:False | ||
inference:./deploy/cpp_infer/build/ppocr --rec_img_h=48 --rec_char_dict_path=./ppocr/utils/ppocr_keys_v1.txt | ||
--use_gpu:True|False | ||
--enable_mkldnn:True|False | ||
--cpu_threads:1|6 | ||
--rec_batch_num:1 | ||
--use_tensorrt:False|True | ||
--precision:fp32|fp16 | ||
--det_model_dir: | ||
--image_dir:./inference/ch_det_data_50/all-sum-510/ | ||
--rec_model_dir:./inference/ch_PP-OCRv3_rec_infer/ | ||
--benchmark:True | ||
--det:True | ||
--rec:True | ||
--cls:False | ||
--use_angle_cls:False |
19 changes: 19 additions & 0 deletions
19
test_tipc/configs/ch_PP-OCRv3/model_linux_gpu_normal_normal_infer_python_linux_gpu_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
===========================ch_PP-OCRv2=========================== | ||
model_name:ch_PP-OCRv3 | ||
python:python3.7 | ||
infer_model:./inference/ch_PP-OCRv3_det_infer/ | ||
infer_export:null | ||
infer_quant:False | ||
inference:tools/infer/predict_system.py --rec_image_shape="3,48,320" | ||
--use_gpu:False|True | ||
--enable_mkldnn:False|True | ||
--cpu_threads:1|6 | ||
--rec_batch_num:1 | ||
--use_tensorrt:False|True | ||
--precision:fp32 | ||
--det_model_dir: | ||
--image_dir:./inference/ch_det_data_50/all-sum-510/ | ||
--rec_model_dir:./inference/ch_PP-OCRv3_rec_infer/ | ||
--benchmark:True | ||
null:null | ||
null:null |
13 changes: 13 additions & 0 deletions
13
test_tipc/configs/ch_PP-OCRv3/model_linux_gpu_normal_normal_lite_cpp_arm_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
===========================lite_params=========================== | ||
inference:./ocr_db_crnn system | ||
runtime_device:ARM_CPU | ||
det_infer_model:ch_PP-OCRv3_det_infer|ch_PP-OCRv3_det_slim_quant_infer | ||
rec_infer_model:ch_PP-OCRv3_rec_infer|ch_PP-OCRv3_rec_slim_quant_infer | ||
cls_infer_model:ch_ppocr_mobile_v2.0_cls_infer|ch_ppocr_mobile_v2.0_cls_slim_infer | ||
--cpu_threads:1|4 | ||
--det_batch_size:1 | ||
--rec_batch_size:1 | ||
--image_dir:./test_data/icdar2015_lite/text_localization/ch4_test_images/ | ||
--config_dir:./config.txt | ||
--rec_dict_dir:./ppocr_keys_v1.txt | ||
--benchmark:True |
13 changes: 13 additions & 0 deletions
13
test_tipc/configs/ch_PP-OCRv3/model_linux_gpu_normal_normal_lite_cpp_arm_gpu_opencl.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
===========================lite_params=========================== | ||
inference:./ocr_db_crnn system | ||
runtime_device:ARM_GPU_OPENCL | ||
det_infer_model:ch_PP-OCRv3_det_infer|ch_PP-OCRv3_det_slim_quant_infer | ||
rec_infer_model:ch_PP-OCRv3_rec_infer|ch_PP-OCRv3_rec_slim_quant_infer | ||
cls_infer_model:ch_ppocr_mobile_v2.0_cls_infer|ch_ppocr_mobile_v2.0_cls_slim_infer | ||
--cpu_threads:1|4 | ||
--det_batch_size:1 | ||
--rec_batch_size:1 | ||
--image_dir:./test_data/icdar2015_lite/text_localization/ch4_test_images/ | ||
--config_dir:./config.txt | ||
--rec_dict_dir:./ppocr_keys_v1.txt | ||
--benchmark:True |
20 changes: 20 additions & 0 deletions
20
test_tipc/configs/ch_PP-OCRv3_det/model_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
===========================cpp_infer_params=========================== | ||
model_name:ocr_det_v3.0 | ||
use_opencv:True | ||
infer_model:./inference/ch_PP-OCRv3_det_infer/ | ||
infer_quant:False | ||
inference:./deploy/cpp_infer/build/ppocr | ||
--use_gpu:True|False | ||
--enable_mkldnn:True|False | ||
--cpu_threads:1|6 | ||
--rec_batch_num:1 | ||
--use_tensorrt:False|True | ||
--precision:fp32|fp16 | ||
--det_model_dir: | ||
--image_dir:./inference/ch_det_data_50/all-sum-510/ | ||
null:null | ||
--benchmark:True | ||
--det:True | ||
--rec:False | ||
--cls:False | ||
--use_angle_cls:False |
13 changes: 13 additions & 0 deletions
13
test_tipc/configs/ch_PP-OCRv3_det/model_linux_gpu_normal_normal_lite_cpp_arm_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
===========================lite_params=========================== | ||
inference:./ocr_db_crnn det | ||
runtime_device:ARM_CPU | ||
det_infer_model:ch_PP-OCRv3_det_infer|ch_PP-OCRv3_det_slim_quant_infer | ||
null:null | ||
null:null | ||
--cpu_threads:1|4 | ||
--det_batch_size:1 | ||
null:null | ||
--image_dir:./test_data/icdar2015_lite/text_localization/ch4_test_images/ | ||
--config_dir:./config.txt | ||
null:null | ||
--benchmark:True |
13 changes: 13 additions & 0 deletions
13
test_tipc/configs/ch_PP-OCRv3_det/model_linux_gpu_normal_normal_lite_cpp_arm_gpu_opencl.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
===========================lite_params=========================== | ||
inference:./ocr_db_crnn det | ||
runtime_device:ARM_GPU_OPENCL | ||
det_infer_model:ch_PP-OCRv3_det_infer|ch_PP-OCRv3_det_slim_quant_infer | ||
null:null | ||
null:null | ||
--cpu_threads:1|4 | ||
--det_batch_size:1 | ||
null:null | ||
--image_dir:./test_data/icdar2015_lite/text_localization/ch4_test_images/ | ||
--config_dir:./config.txt | ||
null:null | ||
--benchmark:True |
14 changes: 14 additions & 0 deletions
14
...pc/configs/ch_PP-OCRv3_det/model_linux_gpu_normal_normal_paddle2onnx_python_linux_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
===========================paddle2onnx_params=========================== | ||
model_name:ocr_det_v3 | ||
python:python3.7 | ||
2onnx: paddle2onnx | ||
--model_dir:./inference/ch_PP-OCRv3_det_infer/ | ||
--model_filename:inference.pdmodel | ||
--params_filename:inference.pdiparams | ||
--save_file:./inference/det_v3_onnx/model.onnx | ||
--opset_version:10 | ||
--enable_onnx_checker:True | ||
inference:tools/infer/predict_det.py | ||
--use_gpu:True|False | ||
--det_model_dir: | ||
--image_dir:./inference/ch_det_data_50/all-sum-510/ |
18 changes: 18 additions & 0 deletions
18
...pc/configs/ch_PP-OCRv3_det/model_linux_gpu_normal_normal_serving_python_linux_gpu_cpu.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
===========================serving_params=========================== | ||
model_name:ocr_det_v3 | ||
python:python3.7 | ||
trans_model:-m paddle_serving_client.convert | ||
--dirname:./inference/ch_PP-OCRv3_det_infer/ | ||
--model_filename:inference.pdmodel | ||
--params_filename:inference.pdiparams | ||
--serving_server:./deploy/pdserving/ppocr_det_v3_serving/ | ||
--serving_client:./deploy/pdserving/ppocr_det_v3_client/ | ||
serving_dir:./deploy/pdserving | ||
web_service:web_service_det.py --config=config.yml --opt op.det.concurrency="1" | ||
op.det.local_service_conf.devices:gpu|null | ||
op.det.local_service_conf.use_mkldnn:True|False | ||
op.det.local_service_conf.thread_num:1|6 | ||
op.det.local_service_conf.use_trt:False|True | ||
op.det.local_service_conf.precision:fp32|fp16|int8 | ||
pipline:pipeline_rpc_client.py|pipeline_http_client.py | ||
--image_dir:../../doc/imgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
===========================train_params=========================== | ||
model_name:ch_PPOCRv3_det | ||
python:python3.7 | ||
gpu_list:0|0,1 | ||
Global.use_gpu:True|True | ||
Global.auto_cast:fp32 | ||
Global.epoch_num:lite_train_lite_infer=1|whole_train_whole_infer=500 | ||
Global.save_model_dir:./output/ | ||
Train.loader.batch_size_per_card:lite_train_lite_infer=2|whole_train_whole_infer=4 | ||
Global.pretrained_model:null | ||
train_model_name:latest | ||
train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/ | ||
null:null | ||
## | ||
trainer:norm_train | ||
norm_train:tools/train.py -c configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml -o | ||
pact_train:null | ||
fpgm_train:null | ||
distill_train:null | ||
null:null | ||
null:null | ||
## | ||
===========================eval_params=========================== | ||
eval:null | ||
null:null | ||
## | ||
===========================infer_params=========================== | ||
Global.save_inference_dir:./output/ | ||
Global.checkpoints: | ||
norm_export:tools/export_model.py -c configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml -o | ||
quant_export:null | ||
fpgm_export: | ||
distill_export:null | ||
export1:null | ||
export2:null | ||
inference_dir:Student | ||
infer_model:./inference/ch_PP-OCRv3_det_infer/ | ||
infer_export:null | ||
infer_quant:False | ||
inference:tools/infer/predict_det.py | ||
--use_gpu:True|False | ||
--enable_mkldnn:True|False | ||
--cpu_threads:1|6 | ||
--rec_batch_num:1 | ||
--use_tensorrt:False|True | ||
--precision:fp32|fp16|int8 | ||
--det_model_dir: | ||
--image_dir:./inference/ch_det_data_50/all-sum-510/ | ||
null:null | ||
--benchmark:True | ||
null:null | ||
===========================infer_benchmark_params========================== | ||
random_infer_input:[{float32,[3,640,640]}];[{float32,[3,960,960]}] |
Oops, something went wrong.