提交 9eec87d4 编写于 作者: H HydrogenSulfate

debug

上级 6453565c
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:MobileNetV3_large_x1_0 model_name:MobileNetV3_large_x1_0
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./MobileNetV3_large_x1_0_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/MobileNetV3_large_x1_0_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/MobileNetV3_large_x1_0_infer.tar
det_inference_url: det_inference_url:
......
===========================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
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPShiTu model_name:PPShiTu
cpp_infer_type:shitu cpp_infer_type:shitu
feature_inference_model_dir:./feature_inference/ feature_inference_model_dir:./general_PPLCNet_x2_5_lite_v1.0_infer/
det_inference_model_dir:./det_inference 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 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 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 infer_quant:False
inference_cmd:./deploy/cpp_shitu/build/pp_shitu -c inference_drink.yaml inference_cmd:./deploy/cpp_shitu/build/pp_shitu -c inference_drink.yaml
use_gpu:True|False use_gpu:True|False
enable_mkldnn:True|False enable_mkldnn:False
cpu_threads:1|6 cpu_threads:1
batch_size:1 batch_size:1
use_tensorrt:False|True use_tensorrt:False
precision:fp32|fp16 precision:fp32
data_dir:./dataset/drink_dataset_v1.0 data_dir:./dataset/drink_dataset_v1.0
benchmark:True benchmark:True
generate_yaml_cmd:python3 test_tipc/generate_cpp_yaml.py generate_yaml_cmd:python3.7 test_tipc/generate_cpp_yaml.py
transform_index_cmd:python3 deploy/cpp_shitu/tools/transform_id_map.py -c inference_drink.yaml transform_index_cmd:python3.7 deploy/cpp_shitu/tools/transform_id_map.py -c inference_drink.yaml
===========================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
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPHGNet_small model_name:PPHGNet_small
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPHGNet_small_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPHGNet_small_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPHGNet_small_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPHGNet_tiny model_name:PPHGNet_tiny
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPHGNet_tiny_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPHGNet_tiny_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPHGNet_tiny_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x0_25 model_name:PPLCNet_x0_25
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x0_25_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_25_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_25_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x0_35 model_name:PPLCNet_x0_35
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x0_35_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_35_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_35_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x0_5 model_name:PPLCNet_x0_5
cpp_infer_type:cls 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: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_5_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_5_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x0_75 model_name:PPLCNet_x0_75
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x0_75_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x1_0 model_name:PPLCNet_x1_0
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x1_0_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x1_0_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x1_0_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x1_5 model_name:PPLCNet_x1_5
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x1_5_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x1_5_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x1_5_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x2_0 model_name:PPLCNet_x2_0
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x2_0_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x2_0_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x2_0_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNet_x2_5 model_name:PPLCNet_x2_5
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNet_x2_5_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x2_5_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x2_5_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:PPLCNetV2_base model_name:PPLCNetV2_base
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./PPLCNetV2_base_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNetV2_base_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNetV2_base_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:ResNet50 model_name:ResNet50
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./ResNet50_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/ResNet50_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/ResNet50_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:ResNet50_vd model_name:ResNet50_vd
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./ResNet50_vd_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/ResNet50_vd_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/ResNet50_vd_infer.tar
det_inference_url: det_inference_url:
......
===========================cpp_infer_params=========================== ===========================cpp_infer_params===========================
model_name:SwinTransformer_tiny_patch4_window7_224 model_name:SwinTransformer_tiny_patch4_window7_224
cpp_infer_type:cls cpp_infer_type:cls
cls_inference_model_dir:./inference/ cls_inference_model_dir:./SwinTransformer_tiny_patch4_window7_224_infer/
det_inference_model_dir: det_inference_model_dir:
cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/SwinTransformer_tiny_patch4_window7_224_infer.tar cls_inference_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/SwinTransformer_tiny_patch4_window7_224_infer.tar
det_inference_url: det_inference_url:
......
...@@ -6,7 +6,7 @@ GPUID=$2 ...@@ -6,7 +6,7 @@ GPUID=$2
if [[ ! $GPUID ]];then if [[ ! $GPUID ]];then
GPUID=0 GPUID=0
fi fi
dataline=$(awk 'NR==1, NR==18{print}' $FILENAME) dataline=$(awk 'NR==1, NR==19{print}' $FILENAME)
# parser params # parser params
IFS=$'\n' IFS=$'\n'
...@@ -57,10 +57,9 @@ function func_shitu_cpp_inference(){ ...@@ -57,10 +57,9 @@ function func_shitu_cpp_inference(){
precison="int8" precison="int8"
fi fi
_save_log_path="${_log_path}/shitu_cpp_infer_cpu_usemkldnn_${use_mkldnn}_threads_${threads}_precision_${precision}_batchsize_${batch_size}.log" _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}" 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 $command
eval $transform_index_cmd
command="${_script} > ${_save_log_path} 2>&1" command="${_script} > ${_save_log_path} 2>&1"
eval $command eval $command
last_status=${PIPESTATUS[0]} last_status=${PIPESTATUS[0]}
...@@ -82,13 +81,13 @@ function func_shitu_cpp_inference(){ ...@@ -82,13 +81,13 @@ function func_shitu_cpp_inference(){
fi fi
for batch_size in ${cpp_batch_size_list[*]}; do 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" _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}" 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 $command
eval $transform_index_cmd
command="${_script} > ${_save_log_path} 2>&1" command="${_script} > ${_save_log_path} 2>&1"
eval $command eval $command
last_status=${PIPESTATUS[0]} last_status=${PIPESTATUS[0]}
status_check $last_status "${_script}" "${status_log}" status_check $last_status "${command}" "${status_log}"
done done
done done
done done
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册