Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
4420a5f6
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
大约 1 年 前同步成功
通知
1519
Star
32962
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
4420a5f6
编写于
7月 05, 2023
作者:
D
duanyanhui
提交者:
GitHub
7月 05, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[npu-tipc] update npu tipc scripts (#10102)
* update npu tipc scripts * update
上级
e44c2af7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
0 deletion
+8
-0
test_tipc/test_train_inference_python_npu.sh
test_tipc/test_train_inference_python_npu.sh
+8
-0
未找到文件。
test_tipc/test_train_inference_python_npu.sh
浏览文件 @
4420a5f6
...
...
@@ -35,12 +35,20 @@ dataline=`cat $FILENAME`
IFS
=
$'
\n
'
lines
=(
${
dataline
}
)
modelname
=
$(
echo
${
lines
[1]
}
|
cut
-d
":"
-f2
)
if
[
$modelname
==
"rec_r31_sar"
]
||
[
$modelname
==
"rec_mtb_nrtr"
]
;
then
sed
-i
"s/Global.epoch_num:lite_train_lite_infer=2/Global.epoch_num:lite_train_lite_infer=1/g"
$FILENAME
sed
-i
"s/gpu_list:0|0,1/gpu_list:0,1/g"
$FILENAME
sed
-i
"s/Global.use_npu:True|True/Global.use_npu:True/g"
$FILENAME
fi
# replace training config file
grep
-n
'tools/.*yml'
$FILENAME
|
cut
-d
":"
-f
1
\
|
while
read
line_num
;
do
train_cmd
=
$(
func_parser_value
"
${
lines
[line_num-1]
}
"
)
trainer_config
=
$(
func_parser_config
${
train_cmd
}
)
sed
-i
's/use_gpu/use_npu/g'
"
$REPO_ROOT_PATH
/
$trainer_config
"
sed
-i
's/use_sync_bn: True/use_sync_bn: False/g'
"
$REPO_ROOT_PATH
/
$trainer_config
"
done
# change gpu to npu in execution script
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录