Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
dd57aa4b
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看板
未验证
提交
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
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"
epoch
=
$(
set_dynamic_epoch
$device_num
$epoch
)
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
--save_log_path:null
--run_benchmark:False
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===========================
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===========================
model_name:
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco
model_name:
ppyoloe_vit_base_csppan_cae_36e
_coco
python:python3.7
gpu_list:0|0,1
use_gpu:True
auto_cast:null
epoch:lite_train_lite_infer=1|lite_train_whole_infer=1|whole_train_whole_infer=300
save_dir:null
TrainReader.batch_size:lite_train_lite_infer=
2
|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
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/
pretrained/vit_base_cae_pretrained
.pdparams
trained_model_name:model_final.pdparams
train_infer_img_dir:./dataset/coco/test2017/
filename:null
##
trainer:norm_train
norm_train:tools/train.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_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
fpgm_train:tools/train.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_coco.yml --slim_config _template_fpgm -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/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config _template_pact -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
null:null
null:null
##
===========================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
##
===========================infer_params===========================
--output_dir:./output_inference
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
pact_export:tools/export_model.py -c configs/vitdet/
cascade_rcnn_vit_base_hrfpn_cae_1x
_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
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/
ppyoloe_vit_base_csppan_cae_36e
_coco.yml --slim_config _template_pact -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
export1: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_quant:False|True
...
...
@@ -49,11 +49,11 @@ inference:./deploy/python/infer.py
--save_log_path:null
--run_benchmark:False
--trt_max_shape:1600
===========================
disable_train_benchmark
==========================
batch_size:
8
===========================
train_benchmark_params
==========================
batch_size:
2
fp_items:fp32|fp16
epoch:1
repeat:
1
2
repeat:2
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
...
...
test_tipc/prepare.sh
浏览文件 @
dd57aa4b
...
...
@@ -91,6 +91,12 @@ elif [ ${MODE} = "benchmark_train" ];then
cd
./dataset/
&&
tar
-xf
coco.tar
ls
./coco/
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
# prepare lite benchmark coco data
wget
-nc
-P
./dataset/coco/ https://paddledet.bj.bcebos.com/data/coco_benchmark.tar
--no-check-certificate
...
...
@@ -154,7 +160,7 @@ else
# 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
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
cd
./ppdet/ext_op
&&
eval
"
${
python
}
setup.py install"
cd
../../
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录