Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
05a7ca24
Commit
05a7ca24
authored
Sep 28, 2021
by
LDOUBLEV
Browse files
add analysis
parent
222c0844
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
benchmark/run_benchmark_det.sh
benchmark/run_benchmark_det.sh
+4
-0
benchmark/run_det.sh
benchmark/run_det.sh
+1
-1
No files found.
benchmark/run_benchmark_det.sh
View file @
05a7ca24
...
...
@@ -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
$@
...
...
benchmark/run_det.sh
View file @
05a7ca24
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment