commit
98046bb1b8
|
@ -38,7 +38,7 @@ bash tests/test_cpp.sh ./tests/configs/ppocr_det_mobile_params.txt '1'
|
||||||
### 使用方式
|
### 使用方式
|
||||||
运行命令:
|
运行命令:
|
||||||
```shell
|
```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
|
||||||
```
|
```
|
||||||
|
|
||||||
参数介绍:
|
参数介绍:
|
||||||
|
|
|
@ -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'
|
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. 精度测试
|
## 3. 精度测试
|
||||||
|
|
||||||
|
@ -89,7 +94,7 @@ bash tests/test.sh ./tests/configs/ppocr_det_mobile_params.txt 'whole_train_infe
|
||||||
### 使用方式
|
### 使用方式
|
||||||
运行命令:
|
运行命令:
|
||||||
```shell
|
```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
|
||||||
```
|
```
|
||||||
|
|
||||||
参数介绍:
|
参数介绍:
|
||||||
|
|
|
@ -93,7 +93,7 @@ function func_serving(){
|
||||||
if [[ ${use_trt} = "False" || ${precision} =~ "int8" ]] && [[ ${_flag_quant} = "True" ]]; then
|
if [[ ${use_trt} = "False" || ${precision} =~ "int8" ]] && [[ ${_flag_quant} = "True" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
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_tensorrt=$(func_set_params "${web_use_trt_key}" "${use_trt}")
|
||||||
set_precision=$(func_set_params "${web_precision_key}" "${precision}")
|
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} & "
|
web_service_cmd="${python} ${web_service_py} ${web_use_gpu_key}=${use_gpu} ${set_tensorrt} ${set_precision} &>${_save_log_path} & "
|
||||||
|
|
Loading…
Reference in New Issue