Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_41840029
PaddleOCR
提交
01f35279
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看板
提交
01f35279
编写于
1月 27, 2022
作者:
L
LDOUBLEV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix job_bt
上级
6b8291d8
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
6 addition
and
4 deletion
+6
-4
test_tipc/benchmark_train.sh
test_tipc/benchmark_train.sh
+6
-4
未找到文件。
test_tipc/benchmark_train.sh
浏览文件 @
01f35279
...
@@ -129,9 +129,6 @@ export model_commit=$(git log|head -n1|awk '{print $2}')
...
@@ -129,9 +129,6 @@ 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}'
`
)
export
frame_version
=
${
str_tmp
%%.post*
}
export
frame_version
=
${
str_tmp
%%.post*
}
export
frame_commit
=
$(
echo
`
python
-c
"import paddle;print(paddle.version.commit)"
`
)
export
frame_commit
=
$(
echo
`
python
-c
"import paddle;print(paddle.version.commit)"
`
)
job_bt
=
`
date
'+%Y%m%d%H%M%S'
`
job_et
=
`
date
'+%Y%m%d%H%M%S'
`
export
model_run_time
=
$((${
job_et
}
-
${
job_bt
}))
if
[
${#
gpu_id
}
-le
1
]
;
then
if
[
${#
gpu_id
}
-le
1
]
;
then
...
@@ -154,7 +151,10 @@ if [ ${#gpu_id} -le 1 ];then
...
@@ -154,7 +151,10 @@ if [ ${#gpu_id} -le 1 ];then
func_sed_params
"
$FILENAME
"
"13"
"null"
# sed used gpu_id
func_sed_params
"
$FILENAME
"
"13"
"null"
# sed used gpu_id
cmd
=
"bash test_tipc/test_train_inference_python.sh
${
FILENAME
}
benchmark_train >
${
log_path
}
/
${
log_name
}
2>&1 "
cmd
=
"bash test_tipc/test_train_inference_python.sh
${
FILENAME
}
benchmark_train >
${
log_path
}
/
${
log_name
}
2>&1 "
echo
$cmd
echo
$cmd
job_bt
=
`
date
'+%Y%m%d%H%M%S'
`
eval
$cmd
eval
$cmd
job_et
=
`
date
'+%Y%m%d%H%M%S'
`
export
model_run_time
=
$((${
job_et
}
-
${
job_bt
}))
eval
"cat
${
log_path
}
/
${
log_name
}
"
eval
"cat
${
log_path
}
/
${
log_name
}
"
# parser log
# parser log
...
@@ -185,7 +185,10 @@ else
...
@@ -185,7 +185,10 @@ else
func_sed_params
"
$FILENAME
"
"13"
"null"
# sed --profile_option as null
func_sed_params
"
$FILENAME
"
"13"
"null"
# sed --profile_option as null
cmd
=
"bash test_tipc/test_train_inference_python.sh
${
FILENAME
}
benchmark_train >
${
log_path
}
/
${
log_name
}
2>&1 "
cmd
=
"bash test_tipc/test_train_inference_python.sh
${
FILENAME
}
benchmark_train >
${
log_path
}
/
${
log_name
}
2>&1 "
echo
$cmd
echo
$cmd
job_bt
=
`
date
'+%Y%m%d%H%M%S'
`
eval
$cmd
eval
$cmd
job_et
=
`
date
'+%Y%m%d%H%M%S'
`
export
model_run_time
=
$((${
job_et
}
-
${
job_bt
}))
eval
"cat
${
log_path
}
/
${
log_name
}
"
eval
"cat
${
log_path
}
/
${
log_name
}
"
# parser log
# parser log
_model_name
=
"
${
model_name
}
_bs
${
batch_size
}
_
${
precision
}
_
${
run_process_type
}
_
${
run_mode
}
"
_model_name
=
"
${
model_name
}
_bs
${
batch_size
}
_
${
precision
}
_
${
run_process_type
}
_
${
run_mode
}
"
...
@@ -204,6 +207,5 @@ else
...
@@ -204,6 +207,5 @@ else
--convergence_key
${
convergence_key_value
}
: "
--convergence_key
${
convergence_key_value
}
: "
echo
$cmd
echo
$cmd
eval
$cmd
eval
$cmd
fi
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录