diff --git a/tests/docs/test_cpp.md b/tests/docs/test_cpp.md index d8380671c01502b18b57523f012c5e096dc70fe0..d44ebf629a9e87a5e98e86e55d8bb6aee1489086 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 87c58395c6038ff68bd172a469a788d5886adcab..eddaac78eaf7a40953f909dc398f77d62406f56c 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 8998ee7ee4c7f14c1a7df86611b709647c0d1a05..dad8bd8e8fe26f86b18fc3135c71a6f19b5d2651 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} & "