Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
3e2330fb
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3e2330fb
编写于
8月 01, 2022
作者:
S
shangliang Xu
提交者:
GitHub
8月 01, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TIPC] alter some params in train_benchmark txt (#6531)
上级
06c8cf7e
变更
24
显示空白变更内容
内联
并排
Showing
24 changed file
with
57 addition
and
19 deletion
+57
-19
test_tipc/benchmark_train.sh
test_tipc/benchmark_train.sh
+27
-5
test_tipc/configs/deformable_detr/deformable_detr_r50_1x_coco_train_infer_python.txt
...e_detr/deformable_detr_r50_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco_train_infer_python.txt
...r_rcnn/faster_rcnn_r50_fpn_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/fcos/fcos_r50_fpn_1x_coco_train_infer_python.txt
.../configs/fcos/fcos_r50_fpn_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/gfl/gfl_r50_fpn_1x_coco_train_infer_python.txt
...pc/configs/gfl/gfl_r50_fpn_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/keypoint/higherhrnet_hrnet_w32_512_train_infer_python.txt
...keypoint/higherhrnet_hrnet_w32_512_train_infer_python.txt
+1
-0
test_tipc/configs/keypoint/hrnet_w32_256x192_train_infer_python.txt
...configs/keypoint/hrnet_w32_256x192_train_infer_python.txt
+1
-0
test_tipc/configs/keypoint/tinypose_128x96_train_infer_python.txt
...c/configs/keypoint/tinypose_128x96_train_infer_python.txt
+2
-1
test_tipc/configs/mask_rcnn/mask_rcnn_r50_1x_coco_train_infer_python.txt
...gs/mask_rcnn/mask_rcnn_r50_1x_coco_train_infer_python.txt
+0
-6
test_tipc/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco_train_infer_python.txt
...ask_rcnn/mask_rcnn_r50_fpn_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/mot/fairmot_dla34_30e_1088x608_train_infer_python.txt
...igs/mot/fairmot_dla34_30e_1088x608_train_infer_python.txt
+2
-1
test_tipc/configs/mot/jde_darknet53_30e_1088x608_train_infer_python.txt
...igs/mot/jde_darknet53_30e_1088x608_train_infer_python.txt
+1
-0
test_tipc/configs/picodet/picodet_lcnet_1_5x_416_coco_train_infer_python.txt
...icodet/picodet_lcnet_1_5x_416_coco_train_infer_python.txt
+1
-0
test_tipc/configs/picodet/picodet_s_320_coco_lcnet_train_infer_python.txt
...s/picodet/picodet_s_320_coco_lcnet_train_infer_python.txt
+1
-0
test_tipc/configs/picodet/picodet_s_320_coco_train_infer_python.txt
...configs/picodet/picodet_s_320_coco_train_infer_python.txt
+1
-0
test_tipc/configs/ppyolo/ppyolo_mbv3_large_coco_train_infer_python.txt
...figs/ppyolo/ppyolo_mbv3_large_coco_train_infer_python.txt
+1
-0
test_tipc/configs/ppyolo/ppyolo_r50vd_dcn_1x_coco_train_infer_python.txt
...gs/ppyolo/ppyolo_r50vd_dcn_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/ppyolo/ppyolo_tiny_650e_coco_train_infer_python.txt
...nfigs/ppyolo/ppyolo_tiny_650e_coco_train_infer_python.txt
+1
-0
test_tipc/configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco_train_infer_python.txt
...pyolo/ppyolov2_r50vd_dcn_365e_coco_train_infer_python.txt
+1
-0
test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_infer_python.txt
...gs/ppyoloe/ppyoloe_crn_s_300e_coco_train_infer_python.txt
+1
-0
test_tipc/configs/solov2/solov2_r50_fpn_1x_coco_train_infer_python.txt
...figs/solov2/solov2_r50_fpn_1x_coco_train_infer_python.txt
+1
-0
test_tipc/configs/yolov3/yolov3_darknet53_270e_coco_train_infer_python.txt
.../yolov3/yolov3_darknet53_270e_coco_train_infer_python.txt
+1
-0
test_tipc/prepare.sh
test_tipc/prepare.sh
+2
-1
test_tipc/test_train_inference_python.sh
test_tipc/test_train_inference_python.sh
+6
-5
未找到文件。
test_tipc/benchmark_train.sh
浏览文件 @
3e2330fb
...
...
@@ -23,6 +23,18 @@ function func_parser_params(){
echo
${
tmp
}
}
function
set_dynamic_epoch
(){
string
=
$1
num
=
$2
_str
=
${
string
:1:6
}
IFS
=
"C"
arr
=(
${
_str
}
)
M
=
${
arr
[0]
}
P
=
${
arr
[1]
}
ep
=
`
expr
$num
\*
$P
`
echo
$ep
}
function
func_sed_params
(){
filename
=
$1
line
=
$2
...
...
@@ -83,9 +95,8 @@ line_num=`expr $line_num + 1`
fp_items
=
$(
func_parser_value
"
${
lines
[line_num]
}
"
)
line_num
=
`
expr
$line_num
+ 1
`
epoch
=
$(
func_parser_value
"
${
lines
[line_num]
}
"
)
eval
"sed -i '10i
\
repeat:
${
epoch
}
' configs/datasets/coco_detection.yml"
eval
"sed -i '10i
\
repeat:
${
epoch
}
' configs/datasets/coco_instance.yml"
eval
"sed -i '10i
\
repeat:
${
epoch
}
' configs/datasets/mot.yml"
line_num
=
`
expr
$line_num
+ 1
`
repeat
=
$(
func_parser_value
"
${
lines
[line_num]
}
"
)
line_num
=
`
expr
$line_num
+ 1
`
profile_option_key
=
$(
func_parser_key
"
${
lines
[line_num]
}
"
)
...
...
@@ -130,7 +141,8 @@ if [ ! -n "$PARAMS" ] ;then
IFS
=
"|"
batch_size_list
=(
${
batch_size
}
)
fp_items_list
=(
${
fp_items
}
)
device_num_list
=(
N1C4
)
device_num
=
"N1C4"
device_num_list
=(
$device_num
)
run_mode
=
"DP"
else
# parser params from input: modeltype_bs${bs_item}_${fp_item}_${run_mode}_${device_num}
...
...
@@ -153,6 +165,16 @@ else
device_num_list
=(
$device_num
)
fi
if
[[
${
model_name
}
=
~
"higherhrnet"
]]
||
[[
${
model_name
}
=
~
"hrnet"
]]
||
[[
${
model_name
}
=
~
"tinypose"
]]
;
then
epoch
=
$(
set_dynamic_epoch
$device_num
$epoch
)
else
epoch
=
1
repeat
=
$(
set_dynamic_epoch
$device_num
$repeat
)
eval
"sed -i '10c
\
repeat:
${
repeat
}
' configs/datasets/coco_detection.yml"
eval
"sed -i '10c
\
repeat:
${
repeat
}
' configs/datasets/coco_instance.yml"
eval
"sed -i '10c
\
repeat:
${
repeat
}
' configs/datasets/mot.yml"
fi
IFS
=
"|"
for
batch_size
in
${
batch_size_list
[*]
}
;
do
for
precision
in
${
fp_items_list
[*]
}
;
do
...
...
@@ -160,7 +182,7 @@ for batch_size in ${batch_size_list[*]}; do
# sed batchsize and precision
func_sed_params
"
$FILENAME
"
"
${
line_precision
}
"
"
$precision
"
func_sed_params
"
$FILENAME
"
"
${
line_batchsize
}
"
"
$MODE
=
$batch_size
"
func_sed_params
"
$FILENAME
"
"
${
line_epoch
}
"
"
$MODE
=
1
"
func_sed_params
"
$FILENAME
"
"
${
line_epoch
}
"
"
$MODE
=
$epoch
"
gpu_id
=
$(
set_gpu_id
$device_num
)
if
[
${#
gpu_id
}
-le
1
]
;
then
...
...
test_tipc/configs/deformable_detr/deformable_detr_r50_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,5 +53,6 @@ inference:./deploy/python/infer.py
batch_size:2
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ inference:./deploy/python/infer.py
batch_size:2|8
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/fcos/fcos_r50_fpn_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ inference:./deploy/python/infer.py
batch_size:2|8
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/gfl/gfl_r50_fpn_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,5 +53,6 @@ inference:./deploy/python/infer.py
batch_size:2|8
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/keypoint/higherhrnet_hrnet_w32_512_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ inference:./deploy/python/keypoint_infer.py
batch_size:20|24
fp_items:fp32|fp16
epoch:20
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/keypoint/hrnet_w32_256x192_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ null:null
batch_size:64|160
fp_items:fp32|fp16
epoch:40
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/keypoint/tinypose_128x96_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -54,6 +54,7 @@ random_infer_input:[{float32,[3,128,96]}]
===========================train_benchmark_params==========================
batch_size:512
fp_items:fp32|fp16
epoch:1
epoch:25
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/mask_rcnn/mask_rcnn_r50_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -49,11 +49,5 @@ inference:./deploy/python/infer.py
--save_log_path:null
--run_benchmark:False
--trt_max_shape:1600
===========================train_benchmark_params==========================
batch_size:2|4
fp_items:fp32|fp16
epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
numpy_infer_input:3x800x1344.npy
\ No newline at end of file
test_tipc/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ inference:./deploy/python/infer.py
batch_size:2|4
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/mot/fairmot_dla34_30e_1088x608_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -52,7 +52,8 @@ inference:./deploy/pptracking/python/mot_jde_infer.py
===========================train_benchmark_params==========================
batch_size:6|22
fp_items:fp32|fp16
epoch:2
epoch:1
repeat:2
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/mot/jde_darknet53_30e_1088x608_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ inference:./deploy/pptracking/python/mot_jde_infer.py
batch_size:4|14
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/picodet/picodet_lcnet_1_5x_416_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x416x416_2.npy
batch_size:80
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/picodet/picodet_s_320_coco_lcnet_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x320x320_2.npy
batch_size:128
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/picodet/picodet_s_320_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x320x320_2.npy
batch_size:128
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/ppyolo/ppyolo_mbv3_large_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x320x320.npy
batch_size:24
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/ppyolo/ppyolo_r50vd_dcn_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x608x608.npy
batch_size:24
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/ppyolo/ppyolo_tiny_650e_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x320x320.npy
batch_size:32
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x640x640.npy
batch_size:12
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -55,5 +55,6 @@ numpy_infer_input:3x640x640.npy
batch_size:32
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
\ No newline at end of file
test_tipc/configs/solov2/solov2_r50_fpn_1x_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ inference:./deploy/python/infer.py
batch_size:2|4
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/configs/yolov3/yolov3_darknet53_270e_coco_train_infer_python.txt
浏览文件 @
3e2330fb
...
...
@@ -53,6 +53,7 @@ null:null
batch_size:8
fp_items:fp32|fp16
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/prepare.sh
浏览文件 @
3e2330fb
...
...
@@ -83,7 +83,8 @@ elif [ ${MODE} = "cpp_infer" ];then
fi
cd
../../
elif
[
${
MODE
}
=
"benchmark_train"
]
;
then
pip
install
-U
pip Cython
pip
install
-U
pip
pip
install
Cython
pip
install
-r
requirements.txt
# prepare lite benchmark coco data
wget
-nc
-P
./dataset/coco/ https://paddledet.bj.bcebos.com/data/coco_benchmark.tar
--no-check-certificate
...
...
test_tipc/test_train_inference_python.sh
浏览文件 @
3e2330fb
...
...
@@ -262,11 +262,6 @@ else
continue
fi
if
[
${
autocast
}
=
"amp"
]
||
[
${
autocast
}
=
"fp16"
]
;
then
set_autocast
=
"--amp"
else
set_autocast
=
" "
fi
set_epoch
=
$(
func_set_params
"
${
epoch_key
}
"
"
${
epoch_num
}
"
)
set_pretrain
=
$(
func_set_params
"
${
pretrain_model_key
}
"
"
${
pretrain_model_value
}
"
)
set_batchsize
=
$(
func_set_params
"
${
train_batch_key
}
"
"
${
train_batch_value
}
"
)
...
...
@@ -274,6 +269,12 @@ else
set_use_gpu
=
$(
func_set_params
"
${
train_use_gpu_key
}
"
"
${
use_gpu
}
"
)
set_train_params1
=
$(
func_set_params
"
${
train_param_key1
}
"
"
${
train_param_value1
}
"
)
save_log
=
"
${
LOG_PATH
}
/
${
trainer
}
_gpus_
${
gpu
}
_autocast_
${
autocast
}
"
if
[
${
autocast
}
=
"amp"
]
||
[
${
autocast
}
=
"fp16"
]
;
then
set_autocast
=
"--amp"
set_train_params1
=
"amp_level=O2"
else
set_autocast
=
" "
fi
set_save_model
=
$(
func_set_params
"
${
save_model_key
}
"
"
${
save_log
}
"
)
nodes
=
"1"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录