Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
e47f4350
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看板
未验证
提交
e47f4350
编写于
7月 05, 2023
作者:
T
Tingquan Gao
提交者:
GitHub
7月 05, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support ampo1 in benchmark; fp16 -> amp (#8412)
* support ampo1 in benchmark; fp16 -> amp * benchmark: fp16 -> amp
上级
253a5d2d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
11 deletion
+14
-11
test_tipc/configs/dino/dino_r50_4scale_1x_coco_train_infer_python.txt
...nfigs/dino/dino_r50_4scale_1x_coco_train_infer_python.txt
+2
-2
test_tipc/configs/picodet/picodet_lcnet_2_5x_416_coco_train_infer_python.txt
...icodet/picodet_lcnet_2_5x_416_coco_train_infer_python.txt
+2
-2
test_tipc/configs/picodet/picodet_s_320_coco_lcnet_train_infer_python.txt
...s/picodet/picodet_s_320_coco_lcnet_train_infer_python.txt
+2
-2
test_tipc/configs/ppyoloe/ppyoloe+/ppyoloe_plus_crn_l_80e_coco_train_infer_python.txt
...yoloe+/ppyoloe_plus_crn_l_80e_coco_train_infer_python.txt
+1
-1
test_tipc/configs/rtdetr/rtdetr_hgnetv2_l_6x_coco_train_infer_python.txt
...gs/rtdetr/rtdetr_hgnetv2_l_6x_coco_train_infer_python.txt
+2
-2
test_tipc/test_train_inference_python.sh
test_tipc/test_train_inference_python.sh
+5
-2
未找到文件。
test_tipc/configs/dino/dino_r50_4scale_1x_coco_train_infer_python.txt
浏览文件 @
e47f4350
...
...
@@ -51,10 +51,10 @@ inference:./deploy/python/infer.py
--trt_max_shape:1600
===========================train_benchmark_params==========================
batch_size:2
fp_items:fp32|
fp16
fp_items:fp32|
amp
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
numpy_infer_input:3x640x640_2.npy
\ No newline at end of file
numpy_infer_input:3x640x640_2.npy
test_tipc/configs/picodet/picodet_lcnet_2_5x_416_coco_train_infer_python.txt
浏览文件 @
e47f4350
...
...
@@ -51,10 +51,10 @@ inference:./deploy/python/infer.py
null:null
===========================train_benchmark_params==========================
batch_size:48
fp_items:fp32|
fp16
fp_items:fp32|
amp
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:null
===========================infer_benchmark_params===========================
numpy_infer_input:3x416x416_2.npy
\ No newline at end of file
numpy_infer_input:3x416x416_2.npy
test_tipc/configs/picodet/picodet_s_320_coco_lcnet_train_infer_python.txt
浏览文件 @
e47f4350
...
...
@@ -51,7 +51,7 @@ inference:./deploy/python/infer.py
null:null
===========================train_benchmark_params==========================
batch_size:64
fp_items:fp32|
fp16
fp_items:fp32|
amp
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
...
...
@@ -59,4 +59,4 @@ flags:null
===========================infer_benchmark_params===========================
numpy_infer_input:3x320x320_2.npy
===========================to_static_train_benchmark_params===========================
to_static_train:--to_static
\ No newline at end of file
to_static_train:--to_static
test_tipc/configs/ppyoloe/ppyoloe+/ppyoloe_plus_crn_l_80e_coco_train_infer_python.txt
浏览文件 @
e47f4350
...
...
@@ -51,7 +51,7 @@ inference:./deploy/python/infer.py
--trt_max_shape:1600
===========================train_benchmark_params==========================
batch_size:16
fp_items:fp32|
fp16
fp_items:fp32|
amp
epoch:1
repeat:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
...
...
test_tipc/configs/rtdetr/rtdetr_hgnetv2_l_6x_coco_train_infer_python.txt
浏览文件 @
e47f4350
...
...
@@ -51,8 +51,8 @@ inference:./deploy/python/infer.py
--trt_max_shape:1600
===========================train_benchmark_params==========================
batch_size:16
fp_items:fp32|
fp16
fp_items:fp32|
amp
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
flags:null
test_tipc/test_train_inference_python.sh
浏览文件 @
e47f4350
...
...
@@ -203,7 +203,7 @@ if [ ${MODE} = "whole_infer" ] || [ ${MODE} = "klquant_whole_infer" ]; then
export_cmd
=
"
${
python
}
${
run_export
}
${
set_export_weight
}
${
set_filename
}
${
set_save_export_dir
}
"
echo
$export_cmd
eval
$export_cmd
status_check
$?
"
${
export_cmd
}
"
"
${
status_log
}
"
"
${
model_name
}
"
status_check
$?
"
${
export_cmd
}
"
"
${
status_log
}
"
"
${
model_name
}
"
#run inference
save_export_model_dir
=
"
${
save_export_value
}
/
${
model_name
}
"
...
...
@@ -279,7 +279,10 @@ 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
if
[
${
autocast
}
=
"amp"
]
;
then
set_autocast
=
"--amp"
set_amp_level
=
"amp_level=O1"
elif
[
${
autocast
}
=
"fp16"
]
;
then
set_autocast
=
"--amp"
set_amp_level
=
"amp_level=O2"
else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录