From 9eec87d4febf4f69c21337a73afccecbc1b4f135 Mon Sep 17 00:00:00 2001 From: HydrogenSulfate <490868991@qq.com> Date: Tue, 31 May 2022 21:35:55 +0800 Subject: [PATCH] debug --- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 18 ------------------ ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 16 ++++++++-------- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 18 ------------------ ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- ...u_normal_normal_infer_cpp_linux_gpu_cpu.txt | 2 +- test_tipc/test_inference_cpp.sh | 9 ++++----- 19 files changed, 27 insertions(+), 64 deletions(-) delete mode 100644 test_tipc/config/PP-ShiTu/PPShiTu_general_rec_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt delete mode 100644 test_tipc/config/PP-ShiTu/PPShiTu_mainbody_det_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt diff --git a/test_tipc/config/MobileNetV3/MobileNetV3_large_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/MobileNetV3/MobileNetV3_large_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 467dd620..cb292d26 100644 --- a/test_tipc/config/MobileNetV3/MobileNetV3_large_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/MobileNetV3/MobileNetV3_large_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:MobileNetV3_large_x1_0 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./MobileNetV3_large_x1_0_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/MobileNetV3_large_x1_0_infer.tar det_inference_url: diff --git a/test_tipc/config/PP-ShiTu/PPShiTu_general_rec_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PP-ShiTu/PPShiTu_general_rec_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt deleted file mode 100644 index 7c150d7f..00000000 --- a/test_tipc/config/PP-ShiTu/PPShiTu_general_rec_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ /dev/null @@ -1,18 +0,0 @@ -===========================cpp_infer_params=========================== -model_name:general_PPLCNet_x2_5_lite_v1.0 -cpp_infer_type:cls -cls_inference_model_dir:./inference/ -det_inference_model_dir: -cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/general_PPLCNet_x2_5_lite_v1.0_infer.tar -det_inference_url: -infer_quant:False -inference_cmd:./deploy/cpp/build/clas_system -c inference_cls.yaml -use_gpu:True|False -enable_mkldnn:False -cpu_threads:1 -batch_size:1 -use_tensorrt:False -precision:fp32 -image_dir:./dataset/ILSVRC2012/val/ILSVRC2012_val_00000001.JPEG -benchmark:False -generate_yaml_cmd:python3.7 test_tipc/generate_cpp_yaml.py diff --git a/test_tipc/config/PP-ShiTu/PPShiTu_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PP-ShiTu/PPShiTu_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index b86aa9b1..c8727278 100644 --- a/test_tipc/config/PP-ShiTu/PPShiTu_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PP-ShiTu/PPShiTu_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,19 +1,19 @@ ===========================cpp_infer_params=========================== model_name:PPShiTu cpp_infer_type:shitu -feature_inference_model_dir:./feature_inference/ -det_inference_model_dir:./det_inference +feature_inference_model_dir:./general_PPLCNet_x2_5_lite_v1.0_infer/ +det_inference_model_dir:./picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer/ cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/general_PPLCNet_x2_5_lite_v1.0_infer.tar det_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer.tar infer_quant:False inference_cmd:./deploy/cpp_shitu/build/pp_shitu -c inference_drink.yaml use_gpu:True|False -enable_mkldnn:True|False -cpu_threads:1|6 +enable_mkldnn:False +cpu_threads:1 batch_size:1 -use_tensorrt:False|True -precision:fp32|fp16 +use_tensorrt:False +precision:fp32 data_dir:./dataset/drink_dataset_v1.0 benchmark:True -generate_yaml_cmd:python3 test_tipc/generate_cpp_yaml.py -transform_index_cmd:python3 deploy/cpp_shitu/tools/transform_id_map.py -c inference_drink.yaml +generate_yaml_cmd:python3.7 test_tipc/generate_cpp_yaml.py +transform_index_cmd:python3.7 deploy/cpp_shitu/tools/transform_id_map.py -c inference_drink.yaml diff --git a/test_tipc/config/PP-ShiTu/PPShiTu_mainbody_det_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PP-ShiTu/PPShiTu_mainbody_det_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt deleted file mode 100644 index 145ae988..00000000 --- a/test_tipc/config/PP-ShiTu/PPShiTu_mainbody_det_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ /dev/null @@ -1,18 +0,0 @@ -===========================cpp_infer_params=========================== -model_name:picodet_PPLCNet_x2_5_mainbody_lite_v1.0 -cpp_infer_type:shitu -cls_inference_model_dir:./inference/ -det_inference_model_dir: -cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer.tar -det_inference_url: -infer_quant:False -inference_cmd:./deploy/cpp/build/clas_system -c inference_cls.yaml -use_gpu:True|False -enable_mkldnn:False -cpu_threads:1 -batch_size:1 -use_tensorrt:False -precision:fp32 -image_dir:./dataset/ILSVRC2012/val/ILSVRC2012_val_00000001.JPEG -benchmark:False -generate_yaml_cmd:python3.7 test_tipc/generate_cpp_yaml.py diff --git a/test_tipc/config/PPHGNet/PPHGNet_small_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPHGNet/PPHGNet_small_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index d150e7e2..78e342fc 100644 --- a/test_tipc/config/PPHGNet/PPHGNet_small_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPHGNet/PPHGNet_small_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPHGNet_small cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPHGNet_small_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPHGNet_small_infer.tar det_inference_url: diff --git a/test_tipc/config/PPHGNet/PPHGNet_tiny_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPHGNet/PPHGNet_tiny_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 21f6da38..37d48ac1 100644 --- a/test_tipc/config/PPHGNet/PPHGNet_tiny_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPHGNet/PPHGNet_tiny_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPHGNet_tiny cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPHGNet_tiny_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPHGNet_tiny_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x0_25_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x0_25_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index be366abb..dbd610ae 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x0_25_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x0_25_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x0_25 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x0_25_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_25_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x0_35_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x0_35_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index f5ec6b70..d20b2099 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x0_35_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x0_35_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x0_35 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x0_35_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_35_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x0_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x0_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 2a4d4324..9cb7b187 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x0_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x0_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x0_5 cpp_infer_type:cls -cls_inference_model_dir:./deploy/models/PPLCNet_x0_5_infer +cls_inference_model_dir:./PPLCNet_x0_5_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_5_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x0_75_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x0_75_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index b81ad6a7..72d99a63 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x0_75_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x0_75_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x0_75 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x0_75_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 02165431..872ba7ac 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x1_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x1_0 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x1_0_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x1_0_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x1_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x1_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 30afa30b..84ced77b 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x1_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x1_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x1_5 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x1_5_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x1_5_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x2_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x2_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 6d99529d..d8353543 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x2_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x2_0_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x2_0 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x2_0_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x2_0_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNet/PPLCNet_x2_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNet/PPLCNet_x2_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 5590f211..0aca9e32 100644 --- a/test_tipc/config/PPLCNet/PPLCNet_x2_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNet/PPLCNet_x2_5_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNet_x2_5 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNet_x2_5_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x2_5_infer.tar det_inference_url: diff --git a/test_tipc/config/PPLCNetV2/PPLCNetV2_base_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/PPLCNetV2/PPLCNetV2_base_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 8d8151bb..d6e68233 100644 --- a/test_tipc/config/PPLCNetV2/PPLCNetV2_base_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/PPLCNetV2/PPLCNetV2_base_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:PPLCNetV2_base cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./PPLCNetV2_base_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNetV2_base_infer.tar det_inference_url: diff --git a/test_tipc/config/ResNet/ResNet50_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/ResNet/ResNet50_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 3198a4d6..e9de97fd 100644 --- a/test_tipc/config/ResNet/ResNet50_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/ResNet/ResNet50_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:ResNet50 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./ResNet50_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/ResNet50_infer.tar det_inference_url: diff --git a/test_tipc/config/ResNet/ResNet50_vd_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/ResNet/ResNet50_vd_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index 99cfcbab..e4b8c1dd 100644 --- a/test_tipc/config/ResNet/ResNet50_vd_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/ResNet/ResNet50_vd_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:ResNet50_vd cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./ResNet50_vd_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/ResNet50_vd_infer.tar det_inference_url: diff --git a/test_tipc/config/SwinTransformer/SwinTransformer_tiny_patch4_window7_224_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt b/test_tipc/config/SwinTransformer/SwinTransformer_tiny_patch4_window7_224_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt index b750b2d2..9f136597 100644 --- a/test_tipc/config/SwinTransformer/SwinTransformer_tiny_patch4_window7_224_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt +++ b/test_tipc/config/SwinTransformer/SwinTransformer_tiny_patch4_window7_224_linux_gpu_normal_normal_infer_cpp_linux_gpu_cpu.txt @@ -1,7 +1,7 @@ ===========================cpp_infer_params=========================== model_name:SwinTransformer_tiny_patch4_window7_224 cpp_infer_type:cls -cls_inference_model_dir:./inference/ +cls_inference_model_dir:./SwinTransformer_tiny_patch4_window7_224_infer/ det_inference_model_dir: cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/SwinTransformer_tiny_patch4_window7_224_infer.tar det_inference_url: diff --git a/test_tipc/test_inference_cpp.sh b/test_tipc/test_inference_cpp.sh index dc6db0ba..0821751c 100644 --- a/test_tipc/test_inference_cpp.sh +++ b/test_tipc/test_inference_cpp.sh @@ -6,7 +6,7 @@ GPUID=$2 if [[ ! $GPUID ]];then GPUID=0 fi -dataline=$(awk 'NR==1, NR==18{print}' $FILENAME) +dataline=$(awk 'NR==1, NR==19{print}' $FILENAME) # parser params IFS=$'\n' @@ -57,10 +57,9 @@ function func_shitu_cpp_inference(){ precison="int8" fi _save_log_path="${_log_path}/shitu_cpp_infer_cpu_usemkldnn_${use_mkldnn}_threads_${threads}_precision_${precision}_batchsize_${batch_size}.log" - + eval $transform_index_cmd command="${generate_yaml_cmd} --type shitu --batch_size ${batch_size} --mkldnn ${use_mkldnn} --gpu ${use_gpu} --cpu_thread ${threads} --tensorrt False --precision ${precision} --data_dir ${_img_dir} --benchmark True --cls_model_dir ${cpp_infer_model_dir} --det_model_dir ${cpp_det_infer_model_dir} --gpu_id ${GPUID}" eval $command - eval $transform_index_cmd command="${_script} > ${_save_log_path} 2>&1" eval $command last_status=${PIPESTATUS[0]} @@ -82,13 +81,13 @@ function func_shitu_cpp_inference(){ fi for batch_size in ${cpp_batch_size_list[*]}; do _save_log_path="${_log_path}/shitu_cpp_infer_gpu_usetrt_${use_trt}_precision_${precision}_batchsize_${batch_size}.log" + eval $transform_index_cmd command="${generate_yaml_cmd} --type shitu --batch_size ${batch_size} --mkldnn False --gpu ${use_gpu} --cpu_thread 1 --tensorrt ${use_trt} --precision ${precision} --data_dir ${_img_dir} --benchmark True --cls_model_dir ${cpp_infer_model_dir} --det_model_dir ${cpp_det_infer_model_dir} --gpu_id ${GPUID}" eval $command - eval $transform_index_cmd command="${_script} > ${_save_log_path} 2>&1" eval $command last_status=${PIPESTATUS[0]} - status_check $last_status "${_script}" "${status_log}" + status_check $last_status "${command}" "${status_log}" done done done -- GitLab