Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
b68c9c05
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看板
提交
b68c9c05
编写于
11月 02, 2021
作者:
小湉湉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix fs2 inference bug
上级
79e7a4d4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
2 deletion
+16
-2
examples/csmsc/tts2/README.md
examples/csmsc/tts2/README.md
+1
-1
examples/csmsc/tts3/README.md
examples/csmsc/tts3/README.md
+8
-0
examples/csmsc/tts3/local/inference.sh
examples/csmsc/tts3/local/inference.sh
+0
-0
examples/csmsc/tts3/run.sh
examples/csmsc/tts3/run.sh
+5
-0
parakeet/exps/fastspeech2/inference.py
parakeet/exps/fastspeech2/inference.py
+2
-1
未找到文件。
examples/csmsc/tts2/README.md
浏览文件 @
b68c9c05
...
...
@@ -19,7 +19,7 @@ Run the command below to
4.
synthesize wavs.
-
synthesize waveform from
`metadata.jsonl`
.
-
synthesize waveform from text file.
6
.
inference using static model.
5
.
inference using static model.
```
bash
./run.sh
```
...
...
examples/csmsc/tts3/README.md
浏览文件 @
b68c9c05
...
...
@@ -19,6 +19,7 @@ Run the command below to
4.
synthesize wavs.
-
synthesize waveform from
`metadata.jsonl`
.
-
synthesize waveform from text file.
5.
inference using static model.
```
bash
./run.sh
```
...
...
@@ -189,6 +190,13 @@ optional arguments:
5.
`--output-dir`
is the directory to save synthesized audio files.
6.
`--device is`
the type of device to run synthesis, 'cpu' and 'gpu' are supported. 'gpu' is recommended for faster synthesis.
### Inference
After Synthesize, we will get static models of fastspeech2 and pwgan in
`${train_output_path}/inference`
.
`./local/inference.sh`
calls
`${BIN_DIR}/inference.py`
, which provides a paddle static model inference example for fastspeech2 + pwgan synthesize.
```
bash
CUDA_VISIBLE_DEVICES
=
${
gpus
}
./local/inference.sh
${
train_output_path
}
```
## Pretrained Model
Pretrained FastSpeech2 model with no silence in the edge of audios.
[
fastspeech2_nosil_baker_ckpt_0.4.zip
](
https://paddlespeech.bj.bcebos.com/Parakeet/fastspeech2_nosil_baker_ckpt_0.4.zip
)
...
...
examples/csmsc/tts3/inference.sh
→
examples/csmsc/tts3/
local/
inference.sh
浏览文件 @
b68c9c05
文件已移动
examples/csmsc/tts3/run.sh
浏览文件 @
b68c9c05
...
...
@@ -35,3 +35,8 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
# synthesize_e2e, vocoder is pwgan
CUDA_VISIBLE_DEVICES
=
${
gpus
}
./local/synthesize_e2e.sh
${
conf_path
}
${
train_output_path
}
${
ckpt_name
}
||
exit
-1
fi
if
[
${
stage
}
-le
4
]
&&
[
${
stop_stage
}
-ge
4
]
;
then
# inference with static model
CUDA_VISIBLE_DEVICES
=
${
gpus
}
./local/inference.sh
${
train_output_path
}
||
exit
-1
fi
parakeet/exps/fastspeech2/inference.py
浏览文件 @
b68c9c05
...
...
@@ -48,7 +48,8 @@ def main():
str
(
Path
(
args
.
inference_dir
)
/
"fastspeech2.pdmodel"
),
str
(
Path
(
args
.
inference_dir
)
/
"fastspeech2.pdiparams"
))
fastspeech2_config
.
enable_use_gpu
(
50
,
0
)
fastspeech2_config
.
enable_memory_optim
()
# This line must be commented, if not, it will OOM
# fastspeech2_config.enable_memory_optim()
fastspeech2_predictor
=
inference
.
create_predictor
(
fastspeech2_config
)
pwg_config
=
inference
.
Config
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录