From 05a7ca248037cc38118fcd6d5129cef70252d1c6 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Tue, 28 Sep 2021 11:47:32 +0000 Subject: [PATCH] add analysis --- benchmark/run_benchmark_det.sh | 4 ++++ benchmark/run_det.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/benchmark/run_benchmark_det.sh b/benchmark/run_benchmark_det.sh index 0deede00..26bcda5d 100644 --- a/benchmark/run_benchmark_det.sh +++ b/benchmark/run_benchmark_det.sh @@ -45,6 +45,10 @@ function _train(){ rm ${log_file} cp mylog/workerlog.0 ${log_file} fi + + # run log analysis + analysis_cmd="python3.7 benchmark/analysis.py --filename ${log_file} --mission_name ${model_name} --run_mode ${mode} --direction_id 0 --keyword 'ips:' --base_batch_size ${batch_szie} --skip_steps 1 --gpu_num ${num_gpu_devices} --index 1 --model_mode=-1 --ips_unit=samples/sec" + eval $analysis_cmd } _set_params $@ diff --git a/benchmark/run_det.sh b/benchmark/run_det.sh index d664b7f8..582ac9b5 100644 --- a/benchmark/run_det.sh +++ b/benchmark/run_det.sh @@ -8,7 +8,7 @@ python3.7 -m pip install -r requirements.txt #wget -p ./pretrain_models/ https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/ResNet50_vd_pretrained.pdparams # 3 批量运行(如不方便批量,1,2需放到单个模型中) -model_mode_list=(ch_ppocr_v2.0/ch_det_res18_db_v2.0 det_r50_vd_east) +model_mode_list=(det_res18_db_v2.0 det_r50_vd_east) fp_item_list=(fp32) bs_list=(8 16) for model_mode in ${model_mode_list[@]}; do -- GitLab