Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
430fbd5d
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
大约 1 年 前同步成功
通知
115
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
430fbd5d
编写于
8月 02, 2022
作者:
R
root
提交者:
Tingquan Gao
8月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tipc: support fp32/fp16 training benchmark of PP-Shitu
上级
a7f12404
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
14 deletion
+48
-14
test_tipc/benchmark_train.sh
test_tipc/benchmark_train.sh
+20
-7
test_tipc/configs/GeneralRecognition/GeneralRecognition_PPLCNet_x2_5_train_infer_python.txt
...on/GeneralRecognition_PPLCNet_x2_5_train_infer_python.txt
+6
-0
test_tipc/prepare.sh
test_tipc/prepare.sh
+22
-7
未找到文件。
test_tipc/benchmark_train.sh
浏览文件 @
430fbd5d
...
...
@@ -184,17 +184,30 @@ for batch_size in ${batch_size_list[*]}; do
# At least 25 log number would be good to calculate ips for benchmark system.
# So the copy number for train_list is as follows:
total_batch_size
=
`
echo
$[$batch_size
*${
device_num
:1:1
}*${
device_num
:3:3
}
]
`
copy_num
=
`
echo
$[$total_batch_size
/200]
`
if
[[
$copy_num
-gt
1
]]
;
then
if
[[
$model_name
==
*
GeneralRecognition
*
]]
;
then
cd
dataset/
train_list_length
=
`
cat
train_reg_all_data.txt |
wc
-l
`
copy_num
=
`
echo
$[
25
*
10
*
$total_batch_size
/
$train_list_length
]
`
if
[[
$copy_num
-gt
1
]]
;
then
rm
-rf
train_reg_all_data.txt
for
((
i
=
1
;
i <
=
$copy_num
;
i++
))
;
do
cat
tipc_shitu_demo_data/demo_train.txt
>>
train_reg_all_data.txt
done
fi
cd
..
else
cd
dataset/ILSVRC2012
rm
-rf
train_list.txt
for
((
i
=
1
;
i <
=
$copy_num
;
i++
))
;
do
cat
val_list.txt
>>
train_list.txt
done
train_list_length
=
`
cat
train_list.txt |
wc
-l
`
copy_num
=
`
echo
$[
25
*
10
*
$total_batch_size
/
$train_list_length
]
`
if
[[
$copy_num
-gt
1
]]
;
then
rm
-rf
train_list.txt
for
((
i
=
1
;
i <
=
$copy_num
;
i++
))
;
do
cat
val_list.txt
>>
train_list.txt
done
fi
cd
../../
fi
if
[[
${#
gpu_id
}
-le
1
]]
;
then
log_path
=
"
$SAVE_LOG
/profiling_log"
mkdir
-p
$log_path
...
...
test_tipc/configs/GeneralRecognition/GeneralRecognition_PPLCNet_x2_5_train_infer_python.txt
浏览文件 @
430fbd5d
...
...
@@ -50,5 +50,11 @@ inference:python/predict_rec.py -c configs/inference_rec.yaml
-o Global.benchmark:False
null:null
null:null
===========================train_benchmark_params==========================
batch_size:256
fp_items:fp32|fp16
epoch:1
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_eager_delete_tensor_gb=0.0;FLAGS_fraction_of_gpu_memory_to_use=0.98;FLAGS_conv_workspace_size_limit=4096
===========================infer_benchmark_params==========================
random_infer_input:[{float32,[3,224,224]}]
\ No newline at end of file
test_tipc/prepare.sh
浏览文件 @
430fbd5d
...
...
@@ -346,12 +346,27 @@ fi
if
[[
${
MODE
}
=
"benchmark_train"
]]
;
then
pip
install
-r
requirements.txt
cd
dataset
rm
-rf
ILSVRC2012
wget
-nc
https://paddle-imagenet-models-name.bj.bcebos.com/data/ImageNet1k/ILSVRC2012_val.tar
tar
xf ILSVRC2012_val.tar
ln
-s
ILSVRC2012_val ILSVRC2012
cd
ILSVRC2012
rm
-rf
train_list.txt
ln
-s
val_list.txt train_list.txt
if
[[
$model_name
==
*
GeneralRecognition
*
]]
;
then
rm
-rf
Aliproduct
rm
-rf
train_reg_all_data.txt
rm
-rf
demo_train
wget
-nc
https://paddle-imagenet-models-name.bj.bcebos.com/data/whole_chain/tipc_shitu_demo_data.tar
--no-check-certificate
tar
-xf
tipc_shitu_demo_data.tar
ln
-s
tipc_shitu_demo_data Aliproduct
ln
-s
tipc_shitu_demo_data/demo_train.txt train_reg_all_data.txt
ln
-s
tipc_shitu_demo_data/demo_train demo_train
cd
tipc_shitu_demo_data
ln
-s
demo_test.txt val_list.txt
else
rm
-rf
ILSVRC2012
wget
-nc
https://paddle-imagenet-models-name.bj.bcebos.com/data/ImageNet1k/ILSVRC2012_val.tar
tar
xf ILSVRC2012_val.tar
ln
-s
ILSVRC2012_val ILSVRC2012
cd
ILSVRC2012
rm
-rf
train_list.txt
ln
-s
val_list.txt train_list.txt
fi
cd
../../
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录