Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
1333ab1b
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看板
未验证
提交
1333ab1b
编写于
11月 22, 2022
作者:
W
WangZhen
提交者:
GitHub
11月 22, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TIPC]Polish tipc shell for dy2st (#7381)
* Polish tipc shell for dy2st * Add dynamicTostatic check * Fix shell
上级
04db2d53
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
8 deletion
+24
-8
test_tipc/benchmark_train.sh
test_tipc/benchmark_train.sh
+9
-1
test_tipc/configs/yolov3/yolov3_darknet53_270e_coco_train_infer_python.txt
.../yolov3/yolov3_darknet53_270e_coco_train_infer_python.txt
+4
-2
test_tipc/test_train_inference_python.sh
test_tipc/test_train_inference_python.sh
+11
-5
未找到文件。
test_tipc/benchmark_train.sh
浏览文件 @
1333ab1b
...
...
@@ -88,7 +88,7 @@ lines=(${dataline})
model_name
=
$(
func_parser_value
"
${
lines
[1]
}
"
)
# 获取benchmark_params所在的行数
line_num
=
`
grep
-n
"train_benchmark_params"
$FILENAME
|
cut
-d
":"
-f
1
`
line_num
=
`
grep
-n
-w
"train_benchmark_params"
$FILENAME
|
cut
-d
":"
-f
1
`
# for train log parser
batch_size
=
$(
func_parser_value
"
${
lines
[line_num]
}
"
)
line_num
=
`
expr
$line_num
+ 1
`
...
...
@@ -144,6 +144,14 @@ if [ ! -n "$PARAMS" ] ;then
device_num
=
"N1C4"
device_num_list
=(
$device_num
)
run_mode
=
"DP"
elif
[[
${
PARAMS
}
=
"dynamicTostatic"
]]
;
then
IFS
=
"|"
model_type
=
$PARAMS
batch_size_list
=(
${
batch_size
}
)
fp_items_list
=(
${
fp_items
}
)
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}
IFS
=
"_"
...
...
test_tipc/configs/yolov3/yolov3_darknet53_270e_coco_train_infer_python.txt
浏览文件 @
1333ab1b
...
...
@@ -17,7 +17,7 @@ norm_train:tools/train.py -c configs/yolov3/yolov3_darknet53_270e_coco.yml -o wo
pact_train:tools/train.py -c configs/yolov3/yolov3_darknet53_270e_coco.yml --slim_config configs/slim/quant/yolov3_darknet_qat.yml -o
fpgm_train:tools/train.py -c configs/yolov3/yolov3_darknet53_270e_coco.yml --slim_config configs/slim/prune/yolov3_darknet_prune_fpgm.yml -o
distill_train:null
to_static_train:--to_static
null:null
null:null
##
===========================eval_params===========================
...
...
@@ -57,4 +57,6 @@ repeat:3
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
numpy_infer_input:3x608x608.npy
\ No newline at end of file
numpy_infer_input:3x608x608.npy
===========================to_static_train_benchmark_params===========================
to_static_train:--to_static
\ No newline at end of file
test_tipc/test_train_inference_python.sh
浏览文件 @
1333ab1b
...
...
@@ -41,8 +41,8 @@ fpgm_key=$(func_parser_key "${lines[17]}")
fpgm_trainer
=
$(
func_parser_value
"
${
lines
[17]
}
"
)
distill_key
=
$(
func_parser_key
"
${
lines
[18]
}
"
)
distill_trainer
=
$(
func_parser_value
"
${
lines
[18]
}
"
)
t
o_static_key
=
$(
func_parser_key
"
${
lines
[19]
}
"
)
t
o_static_trainer
=
$(
func_parser_value
"
${
lines
[19]
}
"
)
t
rainer_key1
=
$(
func_parser_key
"
${
lines
[19]
}
"
)
t
rainer_value1
=
$(
func_parser_value
"
${
lines
[19]
}
"
)
trainer_key2
=
$(
func_parser_key
"
${
lines
[20]
}
"
)
trainer_value2
=
$(
func_parser_value
"
${
lines
[20]
}
"
)
...
...
@@ -96,6 +96,9 @@ LOG_PATH="./test_tipc/output/${model_name}/${MODE}"
mkdir
-p
${
LOG_PATH
}
status_log
=
"
${
LOG_PATH
}
/results_python.log"
line_num
=
`
grep
-n
-w
"to_static_train_benchmark_params"
$FILENAME
|
cut
-d
":"
-f
1
`
to_static_key
=
$(
func_parser_key
"
${
lines
[line_num]
}
"
)
to_static_trainer
=
$(
func_parser_value
"
${
lines
[line_num]
}
"
)
function
func_inference
(){
IFS
=
'|'
...
...
@@ -251,13 +254,16 @@ else
elif
[
${
trainer
}
=
"
${
distill_key
}
"
]
;
then
run_train
=
${
distill_trainer
}
run_export
=
${
distill_export
}
elif
[
${
trainer
}
=
"
${
trainer_key1
}
"
]
;
then
run_train
=
${
trainer_value1
}
run_export
=
${
export_value1
}
elif
[
${
trainer
}
=
"
${
trainer_key2
}
"
]
;
then
run_train
=
${
trainer_value2
}
run_export
=
${
export_value2
}
elif
[
${
trainer
}
=
"
${
to_static_key
}
"
]
;
then
run_train
=
${
norm_trainer
}
run_export
=
${
norm_export
}
set_to_static
=
${
to_static_trainer
}
elif
[
${
trainer
}
=
"
${
trainer_key2
}
"
]
;
then
run_train
=
${
trainer_value2
}
run_export
=
${
export_value2
}
else
continue
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录