Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
f264b912
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f264b912
编写于
4月 07, 2022
作者:
小湉湉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add warmup for frontend, test=doc
上级
d592f252
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
3 deletion
+8
-3
paddlespeech/t2s/exps/ort_predict_e2e.py
paddlespeech/t2s/exps/ort_predict_e2e.py
+8
-3
未找到文件。
paddlespeech/t2s/exps/ort_predict_e2e.py
浏览文件 @
f264b912
...
@@ -79,6 +79,13 @@ def ort_predict(args):
...
@@ -79,6 +79,13 @@ def ort_predict(args):
voc_sess
.
run
(
None
,
{
"logmel"
:
data
})
voc_sess
.
run
(
None
,
{
"logmel"
:
data
})
print
(
"warm up done!"
)
print
(
"warm up done!"
)
# frontend warmup
# Loading model cost 0.5+ seconds
if
args
.
lang
==
'zh'
:
frontend
.
get_input_ids
(
"你好,欢迎使用飞桨框架进行深度学习研究!"
,
merge_sentences
=
True
)
else
:
print
(
"lang should in be 'zh' here!"
)
N
=
0
N
=
0
T
=
0
T
=
0
merge_sentences
=
True
merge_sentences
=
True
...
@@ -132,9 +139,7 @@ def parse_args():
...
@@ -132,9 +139,7 @@ def parse_args():
'--voc'
,
'--voc'
,
type
=
str
,
type
=
str
,
default
=
'hifigan_csmsc'
,
default
=
'hifigan_csmsc'
,
choices
=
[
choices
=
[
'hifigan_csmsc'
,
'mb_melgan_csmsc'
],
'hifigan_csmsc'
,
'mb_melgan_csmsc'
],
help
=
'Choose vocoder type of tts task.'
)
help
=
'Choose vocoder type of tts task.'
)
# other
# other
parser
.
add_argument
(
parser
.
add_argument
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录