Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
dd57aa4b
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
dd57aa4b
编写于
1月 03, 2023
作者:
L
LokeZhou
提交者:
GitHub
1月 03, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TIPC add train benchmark (#7570)
* vitdet * pp-yoloe+ * pp-yoloe-r * pp-yoloe-sod
上级
5c87a7af
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
75 addition
and
2 deletion
+75
-2
test_tipc/benchmark_train.sh
test_tipc/benchmark_train.sh
+1
-1
test_tipc/configs/rotate/ppyoloe_r/ppyoloe_r_crn_s_3x_spine_coco_train_infer_python.txt
...oe_r/ppyoloe_r_crn_s_3x_spine_coco_train_infer_python.txt
+7
-0
test_tipc/configs/vitdet/ppyoloe_vit_base_csppan_cae_36e_coco_train_infer_python.txt
...yoloe_vit_base_csppan_cae_36e_coco_train_infer_python.txt
+60
-0
test_tipc/prepare.sh
test_tipc/prepare.sh
+7
-1
未找到文件。
test_tipc/benchmark_train.sh
浏览文件 @
dd57aa4b
...
@@ -183,7 +183,7 @@ fi
...
@@ -183,7 +183,7 @@ fi
if
[[
${
model_name
}
=
~
"higherhrnet"
]]
||
[[
${
model_name
}
=
~
"hrnet"
]]
||
[[
${
model_name
}
=
~
"tinypose"
]]
;
then
if
[[
${
model_name
}
=
~
"higherhrnet"
]]
||
[[
${
model_name
}
=
~
"hrnet"
]]
||
[[
${
model_name
}
=
~
"tinypose"
]]
||
[[
${
model_name
}
=
~
"ppyoloe_r_crn_s_3x_spine_coco"
]]
;
then
echo
"
${
model_name
}
run on full coco dataset"
echo
"
${
model_name
}
run on full coco dataset"
epoch
=
$(
set_dynamic_epoch
$device_num
$epoch
)
epoch
=
$(
set_dynamic_epoch
$device_num
$epoch
)
else
else
...
...
test_tipc/configs/rotate/ppyoloe_r/ppyoloe_r_crn_s_3x_spine_coco_train_infer_python.txt
浏览文件 @
dd57aa4b
...
@@ -49,5 +49,12 @@ inference:./deploy/python/infer.py
...
@@ -49,5 +49,12 @@ inference:./deploy/python/infer.py
--save_log_path:null
--save_log_path:null
--run_benchmark:False
--run_benchmark:False
null:null
null:null
===========================train_benchmark_params==========================
batch_size:2
fp_items:fp32
epoch:5
repeat:12
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
===========================infer_benchmark_params===========================
numpy_infer_input:3x1024x1024.npy
numpy_infer_input:3x1024x1024.npy
\ No newline at end of file
test_tipc/configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco_train_infer_python.txt
→
test_tipc/configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco_train_infer_python.txt
浏览文件 @
dd57aa4b
===========================train_params===========================
===========================train_params===========================
model_name:
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco
model_name:
ppyoloe_vit_base_csppan_cae_36e
_coco
python:python3.7
python:python3.7
gpu_list:0|0,1
gpu_list:0|0,1
use_gpu:True
use_gpu:True
auto_cast:null
auto_cast:null
epoch:lite_train_lite_infer=1|lite_train_whole_infer=1|whole_train_whole_infer=300
epoch:lite_train_lite_infer=1|lite_train_whole_infer=1|whole_train_whole_infer=300
save_dir:null
save_dir:null
TrainReader.batch_size:lite_train_lite_infer=
2
|lite_train_whole_infer=2|whole_train_whole_infer=2
TrainReader.batch_size:lite_train_lite_infer=
1
|lite_train_whole_infer=2|whole_train_whole_infer=2
pretrain_weights:https://bj.bcebos.com/v1/paddledet/models/
cascade_rcnn_vit_base_hrfpn_cae_1x_coco
.pdparams
pretrain_weights:https://bj.bcebos.com/v1/paddledet/models/
pretrained/vit_base_cae_pretrained
.pdparams
trained_model_name:model_final.pdparams
trained_model_name:model_final.pdparams
train_infer_img_dir:./dataset/coco/test2017/
train_infer_img_dir:./dataset/coco/test2017/
filename:null
filename:null
##
##
trainer:norm_train
trainer:norm_train
norm_train:tools/train.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml -o
norm_train:tools/train.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml -o
pact_train:tools/train.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml --slim_config _template_pact -o
pact_train:tools/train.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config _template_pact -o
fpgm_train:tools/train.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml --slim_config _template_fpgm -o
fpgm_train:tools/train.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config _template_fpgm -o
distill_train:null
distill_train:null
null:null
null:null
null:null
null:null
##
##
===========================eval_params===========================
===========================eval_params===========================
eval:tools/eval.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml -o
eval:tools/eval.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml -o
null:null
null:null
##
##
===========================infer_params===========================
===========================infer_params===========================
--output_dir:./output_inference
--output_dir:./output_inference
weights:https://bj.bcebos.com/v1/paddledet/models/pretrained/vit_base_cae_pretrained.pdparams
weights:https://bj.bcebos.com/v1/paddledet/models/pretrained/vit_base_cae_pretrained.pdparams
norm_export:tools/export_model.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml -o
norm_export:tools/export_model.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml -o
pact_export:tools/export_model.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml --slim_config _template_pact -o
pact_export:tools/export_model.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config _template_pact -o
fpgm_export:tools/export_model.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml --slim_config _template_fpgm -o
fpgm_export:tools/export_model.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config _template_fpgm -o
distill_export:null
distill_export:null
export1:null
export1:null
export2:null
export2:null
kl_quant_export:tools/post_quant.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml --slim_config configs/slim/post_quant/ppyoloe_crn_s_300e_coco_ptq.yml -o
kl_quant_export:tools/post_quant.py -c configs/vitdet/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config configs/slim/post_quant/ppyoloe_crn_s_300e_coco_ptq.yml -o
##
##
infer_mode:norm|kl_quant
infer_mode:norm|kl_quant
infer_quant:False|True
infer_quant:False|True
...
@@ -49,11 +49,11 @@ inference:./deploy/python/infer.py
...
@@ -49,11 +49,11 @@ inference:./deploy/python/infer.py
--save_log_path:null
--save_log_path:null
--run_benchmark:False
--run_benchmark:False
--trt_max_shape:1600
--trt_max_shape:1600
===========================
disable_train_benchmark
==========================
===========================
train_benchmark_params
==========================
batch_size:
8
batch_size:
2
fp_items:fp32|fp16
fp_items:fp32|fp16
epoch:1
epoch:1
repeat:
1
2
repeat:2
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
flags:null
===========================infer_benchmark_params===========================
===========================infer_benchmark_params===========================
...
...
test_tipc/prepare.sh
浏览文件 @
dd57aa4b
...
@@ -91,6 +91,12 @@ elif [ ${MODE} = "benchmark_train" ];then
...
@@ -91,6 +91,12 @@ elif [ ${MODE} = "benchmark_train" ];then
cd
./dataset/
&&
tar
-xf
coco.tar
cd
./dataset/
&&
tar
-xf
coco.tar
ls
./coco/
ls
./coco/
cd
../
cd
../
elif
[[
${
model_name
}
=
~
"ppyoloe_r_crn_s_3x_spine_coco"
]]
;
then
wget
-nc
-P
./dataset/spine_coco/ https://paddledet.bj.bcebos.com/data/tipc/spine_coco_tipc.tar
--no-check-certificate
cd
./dataset/spine_coco/
&&
tar
-xvf
spine_coco_tipc.tar
&&
mv
-n
spine_coco_tipc/
*
.
rm
-rf
spine_coco_tipc/
&&
cd
../../
cd
./ppdet/ext_op
&&
eval
"
${
python
}
setup.py install"
cd
../../
else
else
# prepare lite benchmark coco data
# prepare lite benchmark coco data
wget
-nc
-P
./dataset/coco/ https://paddledet.bj.bcebos.com/data/coco_benchmark.tar
--no-check-certificate
wget
-nc
-P
./dataset/coco/ https://paddledet.bj.bcebos.com/data/coco_benchmark.tar
--no-check-certificate
...
@@ -154,7 +160,7 @@ else
...
@@ -154,7 +160,7 @@ else
# download spine_coco lite data
# download spine_coco lite data
wget
-nc
-P
./dataset/spine_coco/ https://paddledet.bj.bcebos.com/data/tipc/spine_coco_tipc.tar
--no-check-certificate
wget
-nc
-P
./dataset/spine_coco/ https://paddledet.bj.bcebos.com/data/tipc/spine_coco_tipc.tar
--no-check-certificate
cd
./dataset/spine_coco/
&&
tar
-xvf
spine_coco_tipc.tar
&&
mv
-n
spine_coco_tipc/
*
.
cd
./dataset/spine_coco/
&&
tar
-xvf
spine_coco_tipc.tar
&&
mv
-n
spine_coco_tipc/
*
.
rm
-rf
spine_tipc/
&&
cd
../../
rm
-rf
spine_
coco_
tipc/
&&
cd
../../
if
[[
${
model_name
}
=
~
"s2anet"
]]
;
then
if
[[
${
model_name
}
=
~
"s2anet"
]]
;
then
cd
./ppdet/ext_op
&&
eval
"
${
python
}
setup.py install"
cd
./ppdet/ext_op
&&
eval
"
${
python
}
setup.py install"
cd
../../
cd
../../
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录