From bbe768987d5ba50ccd2c001f3c542d713c8cc8ea Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Tue, 26 Oct 2021 14:09:27 +0800 Subject: [PATCH 1/3] add ppocrv2 to PTDN --- PTDN/configs/ppocr_det_mobile_params.txt | 2 +- PTDN/configs/ppocrv2_det_mobile_params.txt | 51 ++++++++++++++++++++++ PTDN/test_train_inference_python.sh | 9 +++- 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 PTDN/configs/ppocrv2_det_mobile_params.txt diff --git a/PTDN/configs/ppocr_det_mobile_params.txt b/PTDN/configs/ppocr_det_mobile_params.txt index 3d2117d7ca..33bd3e9de4 100644 --- a/PTDN/configs/ppocr_det_mobile_params.txt +++ b/PTDN/configs/ppocr_det_mobile_params.txt @@ -33,7 +33,7 @@ fpgm_export:deploy/slim/prune/export_prune_model.py -c tests/configs/det_mv3_db. distill_export:null export1:null export2:null -## +inference_dir:null train_model:./inference/ch_ppocr_mobile_v2.0_det_train/best_accuracy infer_export:tools/export_model.py -c configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml -o infer_quant:False diff --git a/PTDN/configs/ppocrv2_det_mobile_params.txt b/PTDN/configs/ppocrv2_det_mobile_params.txt new file mode 100644 index 0000000000..f4073ec6e9 --- /dev/null +++ b/PTDN/configs/ppocrv2_det_mobile_params.txt @@ -0,0 +1,51 @@ +===========================train_params=========================== +model_name:PPOCRv2_ocr_det +python:python3.7 +gpu_list:0|0,1 +Global.use_gpu:True|True +Global.auto_cast:fp32 +Global.epoch_num:lite_train_infer=1|whole_train_infer=500 +Global.save_model_dir:./output/ +Train.loader.batch_size_per_card:lite_train_infer=2|whole_train_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|pact_train +norm_train:tools/train.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +pact_train:deploy/slim/quantization/quant.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +fpgm_train:null +distill_train:null +null:null +null:null +## +===========================eval_params=========================== +eval:null +null:null +## +===========================infer_params=========================== +Global.save_inference_dir:./output/ +Global.pretrained_model: +norm_export:tools/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +quant_export:deploy/slim/quantization/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +fpgm_export:deploy/slim/prune/export_prune_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +distill_export:null +export1:null +export2:null +inference_dir:Student +train_model:./inference/ch_PP-OCRv2_det_distill_train/best_accuracy +infer_export:tools/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +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 diff --git a/PTDN/test_train_inference_python.sh b/PTDN/test_train_inference_python.sh index 756e1f89d7..46b5c4cbd0 100644 --- a/PTDN/test_train_inference_python.sh +++ b/PTDN/test_train_inference_python.sh @@ -59,6 +59,7 @@ export_key1=$(func_parser_key "${lines[33]}") export_value1=$(func_parser_value "${lines[33]}") export_key2=$(func_parser_key "${lines[34]}") export_value2=$(func_parser_value "${lines[34]}") +inference_dir=$(func_parser_value "${lines[35]}") # parser inference model infer_model_dir_list=$(func_parser_value "${lines[36]}") @@ -347,7 +348,13 @@ else #run inference eval $env save_infer_path="${save_log}" - func_inference "${python}" "${inference_py}" "${save_infer_path}" "${LOG_PATH}" "${train_infer_img_dir}" "${flag_quant}" + if [ ${inference_dir} != "null" ] && [ ${inference_dir} != '##' ]; then + infer_model_dir="${save_infer_path}/${inference_dir}" + else + infer_model_dir=${save_infer_path} + fi + func_inference "${python}" "${inference_py}" "${infer_model_dir}" "${LOG_PATH}" "${train_infer_img_dir}" "${flag_quant}" + eval "unset CUDA_VISIBLE_DEVICES" fi done # done with: for trainer in ${trainer_list[*]}; do From dbb6999d84be6c065256b1ac80d6ab843809fe37 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 27 Oct 2021 10:24:36 +0800 Subject: [PATCH 2/3] fix prepare.sh --- PTDN/configs/ppocrv2_det_mobile_params.txt | 6 +++--- PTDN/prepare.sh | 24 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/PTDN/configs/ppocrv2_det_mobile_params.txt b/PTDN/configs/ppocrv2_det_mobile_params.txt index f4073ec6e9..423cb979f0 100644 --- a/PTDN/configs/ppocrv2_det_mobile_params.txt +++ b/PTDN/configs/ppocrv2_det_mobile_params.txt @@ -29,13 +29,13 @@ Global.save_inference_dir:./output/ Global.pretrained_model: norm_export:tools/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o quant_export:deploy/slim/quantization/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o -fpgm_export:deploy/slim/prune/export_prune_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +fpgm_export: distill_export:null export1:null export2:null inference_dir:Student -train_model:./inference/ch_PP-OCRv2_det_distill_train/best_accuracy -infer_export:tools/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCR_det_cml.yml -o +infer_model:./inference/ch_PP-OCRv2_det_infer/ +infer_export:null infer_quant:False inference:tools/infer/predict_det.py --use_gpu:True|False diff --git a/PTDN/prepare.sh b/PTDN/prepare.sh index d842f4f573..cd334268af 100644 --- a/PTDN/prepare.sh +++ b/PTDN/prepare.sh @@ -38,6 +38,10 @@ if [ ${MODE} = "lite_train_infer" ];then # pretrain lite train data wget -nc -P ./pretrain_models/ https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/MobileNetV3_large_x0_5_pretrained.pdparams wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_mv3_db_v2.0_train.tar + if [ ${model_name} == "PPOCRv2_ocr_det" ]; then + wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_distill_train.tar + cd ./pretrain_models/ && tar xf ch_PP-OCRv2_det_distill_train.tar && cd ../ + fi cd ./pretrain_models/ && tar xf det_mv3_db_v2.0_train.tar && cd ../ rm -rf ./train_data/icdar2015 rm -rf ./train_data/ic15_data @@ -57,6 +61,10 @@ elif [ ${MODE} = "whole_train_infer" ];then wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/icdar2015.tar wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ic15_data.tar cd ./train_data/ && tar xf icdar2015.tar && tar xf ic15_data.tar && cd ../ + if [ ${model_name} == "PPOCRv2_ocr_det" ]; then + wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_distill_train.tar + cd ./pretrain_models/ && tar xf ch_PP-OCRv2_det_distill_train.tar && cd ../ + fi elif [ ${MODE} = "whole_infer" ];then wget -nc -P ./pretrain_models/ https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/MobileNetV3_large_x0_5_pretrained.pdparams rm -rf ./train_data/icdar2015 @@ -66,6 +74,10 @@ elif [ ${MODE} = "whole_infer" ];then cd ./train_data/ && tar xf icdar2015_infer.tar && tar xf ic15_data.tar ln -s ./icdar2015_infer ./icdar2015 cd ../ + if [ ${model_name} == "PPOCRv2_ocr_det" ]; then + wget -nc -P ./pretrain_models/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_distill_train.tar + cd ./pretrain_models/ && tar xf ch_PP-OCRv2_det_distill_train.tar && cd ../ + fi elif [ ${MODE} = "infer" ];then if [ ${model_name} = "ocr_det" ]; then eval_model_name="ch_ppocr_mobile_v2.0_det_train" @@ -100,12 +112,24 @@ elif [ ${MODE} = "infer" ];then wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar cd ./inference && tar xf ${eval_model_name}.tar && tar xf rec_inference.tar && cd ../ fi + elif [ ${model_name} = "PPOCRv2_ocr_det" ]; then + eval_model_name="ch_PP-OCRv2_det_infer" + wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar + wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_infer.tar + cd ./inference && tar xf ${eval_model_name}.tar && tar xf ch_det_data_50.tar && cd ../ + fi elif [ ${MODE} = "klquant_infer" ];then if [ ${model_name} = "ocr_det" ]; then wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar cd ./inference && tar xf ch_ppocr_mobile_v2.0_det_infer.tar && tar xf ch_det_data_50.tar && cd ../ fi + if [ ${model_name} = "PPOCRv2_ocr_det" ]; then + eval_model_name="ch_PP-OCRv2_det_infer" + wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar + wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_infer.tar + cd ./inference && tar xf ${eval_model_name}.tar && tar xf ch_det_data_50.tar && cd ../ + fi elif [ ${MODE} = "cpp_infer" ];then if [ ${model_name} = "ocr_det" ]; then wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar From 106d1953a1b3f5e532586d71d587c65583b10503 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 27 Oct 2021 14:03:35 +0800 Subject: [PATCH 3/3] rename ptdn as test_tipc --- {PTDN => test_tipc}/common_func.sh | 0 {PTDN => test_tipc}/compare_results.py | 2 ++ {PTDN => test_tipc}/configs/det_mv3_db.yml | 0 {PTDN => test_tipc}/configs/det_r50_vd_db.yml | 0 .../configs/ppocr_det_mobile_params.txt | 0 .../configs/ppocr_det_server_params.txt | 0 .../configs/ppocr_rec_mobile_params.txt | 0 .../configs/ppocr_rec_server_params.txt | 0 .../configs/ppocr_sys_mobile_params.txt | 0 .../configs/ppocr_sys_server_params.txt | 0 .../configs/ppocrv2_det_mobile_params.txt | 0 .../configs/rec_icdar15_r34_train.yml | 0 {PTDN => test_tipc}/docs/compare_cpp_right.png | Bin {PTDN => test_tipc}/docs/compare_cpp_wrong.png | Bin {PTDN => test_tipc}/docs/compare_right.png | Bin {PTDN => test_tipc}/docs/compare_wrong.png | Bin {PTDN => test_tipc}/docs/guide.png | Bin {PTDN => test_tipc}/docs/install.md | 0 {PTDN => test_tipc}/docs/test.png | Bin {PTDN => test_tipc}/docs/test_inference_cpp.md | 0 {PTDN => test_tipc}/docs/test_serving.md | 0 .../docs/test_train_inference_python.md | 0 {PTDN => test_tipc}/prepare.sh | 0 {PTDN => test_tipc}/readme.md | 2 +- .../results/cpp_ppocr_det_mobile_results_fp16.txt | 0 .../results/cpp_ppocr_det_mobile_results_fp32.txt | 0 .../python_ppocr_det_mobile_results_fp16.txt | 0 .../python_ppocr_det_mobile_results_fp32.txt | 0 {PTDN => test_tipc}/test_inference_cpp.sh | 0 {PTDN => test_tipc}/test_serving.sh | 0 {PTDN => test_tipc}/test_train_inference_python.sh | 0 31 files changed, 3 insertions(+), 1 deletion(-) rename {PTDN => test_tipc}/common_func.sh (100%) rename {PTDN => test_tipc}/compare_results.py (99%) rename {PTDN => test_tipc}/configs/det_mv3_db.yml (100%) rename {PTDN => test_tipc}/configs/det_r50_vd_db.yml (100%) rename {PTDN => test_tipc}/configs/ppocr_det_mobile_params.txt (100%) rename {PTDN => test_tipc}/configs/ppocr_det_server_params.txt (100%) rename {PTDN => test_tipc}/configs/ppocr_rec_mobile_params.txt (100%) rename {PTDN => test_tipc}/configs/ppocr_rec_server_params.txt (100%) rename {PTDN => test_tipc}/configs/ppocr_sys_mobile_params.txt (100%) rename {PTDN => test_tipc}/configs/ppocr_sys_server_params.txt (100%) rename {PTDN => test_tipc}/configs/ppocrv2_det_mobile_params.txt (100%) rename {PTDN => test_tipc}/configs/rec_icdar15_r34_train.yml (100%) rename {PTDN => test_tipc}/docs/compare_cpp_right.png (100%) rename {PTDN => test_tipc}/docs/compare_cpp_wrong.png (100%) rename {PTDN => test_tipc}/docs/compare_right.png (100%) rename {PTDN => test_tipc}/docs/compare_wrong.png (100%) rename {PTDN => test_tipc}/docs/guide.png (100%) rename {PTDN => test_tipc}/docs/install.md (100%) rename {PTDN => test_tipc}/docs/test.png (100%) rename {PTDN => test_tipc}/docs/test_inference_cpp.md (100%) rename {PTDN => test_tipc}/docs/test_serving.md (100%) rename {PTDN => test_tipc}/docs/test_train_inference_python.md (100%) rename {PTDN => test_tipc}/prepare.sh (100%) rename {PTDN => test_tipc}/readme.md (99%) rename {PTDN => test_tipc}/results/cpp_ppocr_det_mobile_results_fp16.txt (100%) rename {PTDN => test_tipc}/results/cpp_ppocr_det_mobile_results_fp32.txt (100%) rename {PTDN => test_tipc}/results/python_ppocr_det_mobile_results_fp16.txt (100%) rename {PTDN => test_tipc}/results/python_ppocr_det_mobile_results_fp32.txt (100%) rename {PTDN => test_tipc}/test_inference_cpp.sh (100%) rename {PTDN => test_tipc}/test_serving.sh (100%) rename {PTDN => test_tipc}/test_train_inference_python.sh (100%) diff --git a/PTDN/common_func.sh b/test_tipc/common_func.sh similarity index 100% rename from PTDN/common_func.sh rename to test_tipc/common_func.sh diff --git a/PTDN/compare_results.py b/test_tipc/compare_results.py similarity index 99% rename from PTDN/compare_results.py rename to test_tipc/compare_results.py index 35af38809f..e28410ed6c 100644 --- a/PTDN/compare_results.py +++ b/test_tipc/compare_results.py @@ -32,6 +32,7 @@ def run_shell_command(cmd): else: return None + def parser_results_from_log_by_name(log_path, names_list): if not os.path.exists(log_path): raise ValueError("The log file {} does not exists!".format(log_path)) @@ -52,6 +53,7 @@ def parser_results_from_log_by_name(log_path, names_list): parser_results[name] = result return parser_results + def load_gt_from_file(gt_file): if not os.path.exists(gt_file): raise ValueError("The log file {} does not exists!".format(gt_file)) diff --git a/PTDN/configs/det_mv3_db.yml b/test_tipc/configs/det_mv3_db.yml similarity index 100% rename from PTDN/configs/det_mv3_db.yml rename to test_tipc/configs/det_mv3_db.yml diff --git a/PTDN/configs/det_r50_vd_db.yml b/test_tipc/configs/det_r50_vd_db.yml similarity index 100% rename from PTDN/configs/det_r50_vd_db.yml rename to test_tipc/configs/det_r50_vd_db.yml diff --git a/PTDN/configs/ppocr_det_mobile_params.txt b/test_tipc/configs/ppocr_det_mobile_params.txt similarity index 100% rename from PTDN/configs/ppocr_det_mobile_params.txt rename to test_tipc/configs/ppocr_det_mobile_params.txt diff --git a/PTDN/configs/ppocr_det_server_params.txt b/test_tipc/configs/ppocr_det_server_params.txt similarity index 100% rename from PTDN/configs/ppocr_det_server_params.txt rename to test_tipc/configs/ppocr_det_server_params.txt diff --git a/PTDN/configs/ppocr_rec_mobile_params.txt b/test_tipc/configs/ppocr_rec_mobile_params.txt similarity index 100% rename from PTDN/configs/ppocr_rec_mobile_params.txt rename to test_tipc/configs/ppocr_rec_mobile_params.txt diff --git a/PTDN/configs/ppocr_rec_server_params.txt b/test_tipc/configs/ppocr_rec_server_params.txt similarity index 100% rename from PTDN/configs/ppocr_rec_server_params.txt rename to test_tipc/configs/ppocr_rec_server_params.txt diff --git a/PTDN/configs/ppocr_sys_mobile_params.txt b/test_tipc/configs/ppocr_sys_mobile_params.txt similarity index 100% rename from PTDN/configs/ppocr_sys_mobile_params.txt rename to test_tipc/configs/ppocr_sys_mobile_params.txt diff --git a/PTDN/configs/ppocr_sys_server_params.txt b/test_tipc/configs/ppocr_sys_server_params.txt similarity index 100% rename from PTDN/configs/ppocr_sys_server_params.txt rename to test_tipc/configs/ppocr_sys_server_params.txt diff --git a/PTDN/configs/ppocrv2_det_mobile_params.txt b/test_tipc/configs/ppocrv2_det_mobile_params.txt similarity index 100% rename from PTDN/configs/ppocrv2_det_mobile_params.txt rename to test_tipc/configs/ppocrv2_det_mobile_params.txt diff --git a/PTDN/configs/rec_icdar15_r34_train.yml b/test_tipc/configs/rec_icdar15_r34_train.yml similarity index 100% rename from PTDN/configs/rec_icdar15_r34_train.yml rename to test_tipc/configs/rec_icdar15_r34_train.yml diff --git a/PTDN/docs/compare_cpp_right.png b/test_tipc/docs/compare_cpp_right.png similarity index 100% rename from PTDN/docs/compare_cpp_right.png rename to test_tipc/docs/compare_cpp_right.png diff --git a/PTDN/docs/compare_cpp_wrong.png b/test_tipc/docs/compare_cpp_wrong.png similarity index 100% rename from PTDN/docs/compare_cpp_wrong.png rename to test_tipc/docs/compare_cpp_wrong.png diff --git a/PTDN/docs/compare_right.png b/test_tipc/docs/compare_right.png similarity index 100% rename from PTDN/docs/compare_right.png rename to test_tipc/docs/compare_right.png diff --git a/PTDN/docs/compare_wrong.png b/test_tipc/docs/compare_wrong.png similarity index 100% rename from PTDN/docs/compare_wrong.png rename to test_tipc/docs/compare_wrong.png diff --git a/PTDN/docs/guide.png b/test_tipc/docs/guide.png similarity index 100% rename from PTDN/docs/guide.png rename to test_tipc/docs/guide.png diff --git a/PTDN/docs/install.md b/test_tipc/docs/install.md similarity index 100% rename from PTDN/docs/install.md rename to test_tipc/docs/install.md diff --git a/PTDN/docs/test.png b/test_tipc/docs/test.png similarity index 100% rename from PTDN/docs/test.png rename to test_tipc/docs/test.png diff --git a/PTDN/docs/test_inference_cpp.md b/test_tipc/docs/test_inference_cpp.md similarity index 100% rename from PTDN/docs/test_inference_cpp.md rename to test_tipc/docs/test_inference_cpp.md diff --git a/PTDN/docs/test_serving.md b/test_tipc/docs/test_serving.md similarity index 100% rename from PTDN/docs/test_serving.md rename to test_tipc/docs/test_serving.md diff --git a/PTDN/docs/test_train_inference_python.md b/test_tipc/docs/test_train_inference_python.md similarity index 100% rename from PTDN/docs/test_train_inference_python.md rename to test_tipc/docs/test_train_inference_python.md diff --git a/PTDN/prepare.sh b/test_tipc/prepare.sh similarity index 100% rename from PTDN/prepare.sh rename to test_tipc/prepare.sh diff --git a/PTDN/readme.md b/test_tipc/readme.md similarity index 99% rename from PTDN/readme.md rename to test_tipc/readme.md index 71e888a2fe..ccc0c8af48 100644 --- a/PTDN/readme.md +++ b/test_tipc/readme.md @@ -69,7 +69,7 @@ PTDN/ ├── ppocr_sys_server_params.txt # 测试server版ppocr检测+识别模型串联的参数配置文件 ├── ppocr_det_server_params.txt # 测试server版ppocr检测模型的参数配置文件 ├── ppocr_rec_server_params.txt # 测试server版ppocr识别模型的参数配置文件 - ├── ... + ├── ... ├── results/ # 预先保存的预测结果,用于和实际预测结果进行精读比对 ├── python_ppocr_det_mobile_results_fp32.txt # 预存的mobile版ppocr检测模型python预测fp32精度的结果 ├── python_ppocr_det_mobile_results_fp16.txt # 预存的mobile版ppocr检测模型python预测fp16精度的结果 diff --git a/PTDN/results/cpp_ppocr_det_mobile_results_fp16.txt b/test_tipc/results/cpp_ppocr_det_mobile_results_fp16.txt similarity index 100% rename from PTDN/results/cpp_ppocr_det_mobile_results_fp16.txt rename to test_tipc/results/cpp_ppocr_det_mobile_results_fp16.txt diff --git a/PTDN/results/cpp_ppocr_det_mobile_results_fp32.txt b/test_tipc/results/cpp_ppocr_det_mobile_results_fp32.txt similarity index 100% rename from PTDN/results/cpp_ppocr_det_mobile_results_fp32.txt rename to test_tipc/results/cpp_ppocr_det_mobile_results_fp32.txt diff --git a/PTDN/results/python_ppocr_det_mobile_results_fp16.txt b/test_tipc/results/python_ppocr_det_mobile_results_fp16.txt similarity index 100% rename from PTDN/results/python_ppocr_det_mobile_results_fp16.txt rename to test_tipc/results/python_ppocr_det_mobile_results_fp16.txt diff --git a/PTDN/results/python_ppocr_det_mobile_results_fp32.txt b/test_tipc/results/python_ppocr_det_mobile_results_fp32.txt similarity index 100% rename from PTDN/results/python_ppocr_det_mobile_results_fp32.txt rename to test_tipc/results/python_ppocr_det_mobile_results_fp32.txt diff --git a/PTDN/test_inference_cpp.sh b/test_tipc/test_inference_cpp.sh similarity index 100% rename from PTDN/test_inference_cpp.sh rename to test_tipc/test_inference_cpp.sh diff --git a/PTDN/test_serving.sh b/test_tipc/test_serving.sh similarity index 100% rename from PTDN/test_serving.sh rename to test_tipc/test_serving.sh diff --git a/PTDN/test_train_inference_python.sh b/test_tipc/test_train_inference_python.sh similarity index 100% rename from PTDN/test_train_inference_python.sh rename to test_tipc/test_train_inference_python.sh