From b0b8a9e8a4f49598f101445fe50532b12aee4630 Mon Sep 17 00:00:00 2001 From: MissPenguin Date: Fri, 15 Oct 2021 09:00:43 +0000 Subject: [PATCH] fix doc --- tests/docs/test_cpp.md | 2 +- tests/docs/test_python.md | 7 ++++++- ..._fp16_cpp.txt => cpp_ppocr_det_mobile_results_fp16.txt} | 0 ..._fp32_cpp.txt => cpp_ppocr_det_mobile_results_fp32.txt} | 0 ...s_fp16.txt => python_ppocr_det_mobile_results_fp16.txt} | 0 ...s_fp32.txt => python_ppocr_det_mobile_results_fp32.txt} | 0 tests/test_serving.sh | 2 +- 7 files changed, 8 insertions(+), 3 deletions(-) rename tests/results/{ppocr_det_mobile_results_fp16_cpp.txt => cpp_ppocr_det_mobile_results_fp16.txt} (100%) rename tests/results/{ppocr_det_mobile_results_fp32_cpp.txt => cpp_ppocr_det_mobile_results_fp32.txt} (100%) rename tests/results/{ppocr_det_mobile_results_fp16.txt => python_ppocr_det_mobile_results_fp16.txt} (100%) rename tests/results/{ppocr_det_mobile_results_fp32.txt => python_ppocr_det_mobile_results_fp32.txt} (100%) diff --git a/tests/docs/test_cpp.md b/tests/docs/test_cpp.md index d8380671..d44ebf62 100644 --- a/tests/docs/test_cpp.md +++ b/tests/docs/test_cpp.md @@ -38,7 +38,7 @@ bash tests/test_cpp.sh ./tests/configs/ppocr_det_mobile_params.txt '1' ### 使用方式 运行命令: ```shell -python3.7 tests/compare_results.py --gt_file=./tests/results/*.txt --log_file=./tests/output/infer_*.log --atol=1e-3 --rtol=1e-3 +python3.7 tests/compare_results.py --gt_file=./tests/results/cpp_*.txt --log_file=./tests/output/cpp_*.log --atol=1e-3 --rtol=1e-3 ``` 参数介绍: diff --git a/tests/docs/test_python.md b/tests/docs/test_python.md index 87c58395..eddaac78 100644 --- a/tests/docs/test_python.md +++ b/tests/docs/test_python.md @@ -78,6 +78,11 @@ bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt 'whole_train_i bash tests/test.sh ./tests/configs/ppocr_det_mobile_params.txt 'whole_train_infer' ``` +- 模式5:klquant_infer , 测试离线量化; +```shell +bash tests/test_python.sh tests/configs/ppocr_det_mobile_params.txt 'klquant_infer' +``` + ## 3. 精度测试 @@ -89,7 +94,7 @@ bash tests/test.sh ./tests/configs/ppocr_det_mobile_params.txt 'whole_train_infe ### 使用方式 运行命令: ```shell -python3.7 tests/compare_results.py --gt_file=./tests/results/*.txt --log_file=./tests/output/infer_*.log --atol=1e-3 --rtol=1e-3 +python3.7 tests/compare_results.py --gt_file=./tests/results/python_*.txt --log_file=./tests/output/python_*.log --atol=1e-3 --rtol=1e-3 ``` 参数介绍: diff --git a/tests/results/ppocr_det_mobile_results_fp16_cpp.txt b/tests/results/cpp_ppocr_det_mobile_results_fp16.txt similarity index 100% rename from tests/results/ppocr_det_mobile_results_fp16_cpp.txt rename to tests/results/cpp_ppocr_det_mobile_results_fp16.txt diff --git a/tests/results/ppocr_det_mobile_results_fp32_cpp.txt b/tests/results/cpp_ppocr_det_mobile_results_fp32.txt similarity index 100% rename from tests/results/ppocr_det_mobile_results_fp32_cpp.txt rename to tests/results/cpp_ppocr_det_mobile_results_fp32.txt diff --git a/tests/results/ppocr_det_mobile_results_fp16.txt b/tests/results/python_ppocr_det_mobile_results_fp16.txt similarity index 100% rename from tests/results/ppocr_det_mobile_results_fp16.txt rename to tests/results/python_ppocr_det_mobile_results_fp16.txt diff --git a/tests/results/ppocr_det_mobile_results_fp32.txt b/tests/results/python_ppocr_det_mobile_results_fp32.txt similarity index 100% rename from tests/results/ppocr_det_mobile_results_fp32.txt rename to tests/results/python_ppocr_det_mobile_results_fp32.txt diff --git a/tests/test_serving.sh b/tests/test_serving.sh index 8998ee7e..dad8bd8e 100644 --- a/tests/test_serving.sh +++ b/tests/test_serving.sh @@ -93,7 +93,7 @@ function func_serving(){ if [[ ${use_trt} = "False" || ${precision} =~ "int8" ]] && [[ ${_flag_quant} = "True" ]]; then continue fi - _save_log_path="${_log_path}/infer_gpu_usetrt_${use_trt}_precision_${precision}_batchsize_1.log" + _save_log_path="${_log_path}/server_gpu_usetrt_${use_trt}_precision_${precision}_batchsize_1.log" set_tensorrt=$(func_set_params "${web_use_trt_key}" "${use_trt}") set_precision=$(func_set_params "${web_precision_key}" "${precision}") web_service_cmd="${python} ${web_service_py} ${web_use_gpu_key}=${use_gpu} ${set_tensorrt} ${set_precision} &>${_save_log_path} & "