Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_41840029
PaddleOCR
提交
0269080a
P
PaddleOCR
项目概览
weixin_41840029
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0269080a
编写于
2月 08, 2022
作者:
L
LDOUBLEV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete debug
上级
e039650e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
1 addition
and
5 deletion
+1
-5
test_tipc/benchmark_trainv2.sh
test_tipc/benchmark_trainv2.sh
+1
-5
未找到文件。
test_tipc/benchmark_trainv2.sh
浏览文件 @
0269080a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
source
test_tipc/common_func.sh
source
test_tipc/common_func.sh
# set env
# set env
python
=
python
3.7
python
=
python
export
model_branch
=
`
git symbolic-ref HEAD 2>/dev/null |
cut
-d
"/"
-f
3
`
export
model_branch
=
`
git symbolic-ref HEAD 2>/dev/null |
cut
-d
"/"
-f
3
`
export
model_commit
=
$(
git log|head
-n1
|awk
'{print $2}'
)
export
model_commit
=
$(
git log|head
-n1
|awk
'{print $2}'
)
export
str_tmp
=
$(
echo
`
pip list|grep paddlepaddle-gpu|awk
-F
' '
'{print $2}'
`
)
export
str_tmp
=
$(
echo
`
pip list|grep paddlepaddle-gpu|awk
-F
' '
'{print $2}'
`
)
...
@@ -124,8 +124,6 @@ if [ ! -n "$PARAMS" ] ;then
...
@@ -124,8 +124,6 @@ if [ ! -n "$PARAMS" ] ;then
fp_items_list
=(
${
fp_items
}
)
fp_items_list
=(
${
fp_items
}
)
device_num_list
=(
N1C4
)
device_num_list
=(
N1C4
)
run_mode
=
"DP"
run_mode
=
"DP"
echo
"batchsize list:
$batch_size_list
${
batch_size_list
[1]
}
"
echo
"fp_item_lists:
$fp_items_list
${
fp_items_list
[1]
}
"
else
else
# parser params from input: modeltype_bs${bs_item}_${fp_item}_${run_process_type}_${run_mode}_${device_num}
# parser params from input: modeltype_bs${bs_item}_${fp_item}_${run_process_type}_${run_mode}_${device_num}
IFS
=
"_"
IFS
=
"_"
...
@@ -152,7 +150,6 @@ IFS="|"
...
@@ -152,7 +150,6 @@ IFS="|"
for
batch_size
in
${
batch_size_list
[*]
}
;
do
for
batch_size
in
${
batch_size_list
[*]
}
;
do
for
precision
in
${
fp_items_list
[*]
}
;
do
for
precision
in
${
fp_items_list
[*]
}
;
do
for
device_num
in
${
device_num_list
[*]
}
;
do
for
device_num
in
${
device_num_list
[*]
}
;
do
echo
"for
$batch_size
$precision
$device_num
$epoch
"
# sed batchsize and precision
# sed batchsize and precision
func_sed_params
"
$FILENAME
"
"6"
"
$precision
"
func_sed_params
"
$FILENAME
"
"6"
"
$precision
"
func_sed_params
"
$FILENAME
"
"9"
"
$MODE
=
$batch_size
"
func_sed_params
"
$FILENAME
"
"9"
"
$MODE
=
$batch_size
"
...
@@ -166,7 +163,6 @@ for batch_size in ${batch_size_list[*]}; do
...
@@ -166,7 +163,6 @@ for batch_size in ${batch_size_list[*]}; do
log_name
=
"
${
repo_name
}
_
${
model_name
}
_bs
${
batch_size
}
_
${
precision
}
_
${
run_process_type
}
_
${
run_mode
}
_
${
device_num
}
_profiling"
log_name
=
"
${
repo_name
}
_
${
model_name
}
_bs
${
batch_size
}
_
${
precision
}
_
${
run_process_type
}
_
${
run_mode
}
_
${
device_num
}
_profiling"
func_sed_params
"
$FILENAME
"
"4"
"0"
# sed used gpu_id
func_sed_params
"
$FILENAME
"
"4"
"0"
# sed used gpu_id
# set profile_option params
# set profile_option params
echo
"profile_option:
${
profile_option
}
"
tmp
=
`
sed
-i
"13s/.*/
${
profile_option
}
/"
"
${
FILENAME
}
"
`
tmp
=
`
sed
-i
"13s/.*/
${
profile_option
}
/"
"
${
FILENAME
}
"
`
# run test_train_inference_python.sh
# run test_train_inference_python.sh
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录