Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
58028509
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
12 个月 前同步成功
通知
205
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
58028509
编写于
5月 20, 2022
作者:
小湉湉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
replace dynamic_import
上级
8db06444
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
13 addition
and
19 deletion
+13
-19
paddlespeech/cli/cls/infer.py
paddlespeech/cli/cls/infer.py
+1
-1
paddlespeech/cli/st/infer.py
paddlespeech/cli/st/infer.py
+1
-1
paddlespeech/cli/text/infer.py
paddlespeech/cli/text/infer.py
+1
-1
paddlespeech/cli/tts/infer.py
paddlespeech/cli/tts/infer.py
+1
-1
paddlespeech/cli/vector/infer.py
paddlespeech/cli/vector/infer.py
+1
-1
paddlespeech/cls/exps/panns/predict.py
paddlespeech/cls/exps/panns/predict.py
+2
-2
paddlespeech/cls/exps/panns/train.py
paddlespeech/cls/exps/panns/train.py
+2
-2
paddlespeech/server/engine/tts/online/python/tts_engine.py
paddlespeech/server/engine/tts/online/python/tts_engine.py
+1
-1
paddlespeech/t2s/exps/synthesize_streaming.py
paddlespeech/t2s/exps/synthesize_streaming.py
+3
-9
未找到文件。
paddlespeech/cli/cls/infer.py
浏览文件 @
58028509
...
@@ -30,7 +30,7 @@ from .pretrained_models import model_alias
...
@@ -30,7 +30,7 @@ from .pretrained_models import model_alias
from
.pretrained_models
import
pretrained_models
from
.pretrained_models
import
pretrained_models
from
paddleaudio
import
load
from
paddleaudio
import
load
from
paddleaudio.features
import
LogMelSpectrogram
from
paddleaudio.features
import
LogMelSpectrogram
from
paddlespeech.
s2t.
utils.dynamic_import
import
dynamic_import
from
paddlespeech.utils.dynamic_import
import
dynamic_import
__all__
=
[
'CLSExecutor'
]
__all__
=
[
'CLSExecutor'
]
...
...
paddlespeech/cli/st/infer.py
浏览文件 @
58028509
...
@@ -36,8 +36,8 @@ from .pretrained_models import kaldi_bins
...
@@ -36,8 +36,8 @@ from .pretrained_models import kaldi_bins
from
.pretrained_models
import
model_alias
from
.pretrained_models
import
model_alias
from
.pretrained_models
import
pretrained_models
from
.pretrained_models
import
pretrained_models
from
paddlespeech.s2t.frontend.featurizer.text_featurizer
import
TextFeaturizer
from
paddlespeech.s2t.frontend.featurizer.text_featurizer
import
TextFeaturizer
from
paddlespeech.s2t.utils.dynamic_import
import
dynamic_import
from
paddlespeech.s2t.utils.utility
import
UpdateConfig
from
paddlespeech.s2t.utils.utility
import
UpdateConfig
from
paddlespeech.utils.dynamic_import
import
dynamic_import
__all__
=
[
"STExecutor"
]
__all__
=
[
"STExecutor"
]
...
...
paddlespeech/cli/text/infer.py
浏览文件 @
58028509
...
@@ -21,7 +21,6 @@ from typing import Union
...
@@ -21,7 +21,6 @@ from typing import Union
import
paddle
import
paddle
from
...s2t.utils.dynamic_import
import
dynamic_import
from
..executor
import
BaseExecutor
from
..executor
import
BaseExecutor
from
..log
import
logger
from
..log
import
logger
from
..utils
import
cli_register
from
..utils
import
cli_register
...
@@ -29,6 +28,7 @@ from ..utils import stats_wrapper
...
@@ -29,6 +28,7 @@ from ..utils import stats_wrapper
from
.pretrained_models
import
model_alias
from
.pretrained_models
import
model_alias
from
.pretrained_models
import
pretrained_models
from
.pretrained_models
import
pretrained_models
from
.pretrained_models
import
tokenizer_alias
from
.pretrained_models
import
tokenizer_alias
from
paddlespeech.utils.dynamic_import
import
dynamic_import
__all__
=
[
'TextExecutor'
]
__all__
=
[
'TextExecutor'
]
...
...
paddlespeech/cli/tts/infer.py
浏览文件 @
58028509
...
@@ -32,10 +32,10 @@ from ..utils import cli_register
...
@@ -32,10 +32,10 @@ from ..utils import cli_register
from
..utils
import
stats_wrapper
from
..utils
import
stats_wrapper
from
.pretrained_models
import
model_alias
from
.pretrained_models
import
model_alias
from
.pretrained_models
import
pretrained_models
from
.pretrained_models
import
pretrained_models
from
paddlespeech.s2t.utils.dynamic_import
import
dynamic_import
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.modules.normalizer
import
ZScore
from
paddlespeech.t2s.modules.normalizer
import
ZScore
from
paddlespeech.utils.dynamic_import
import
dynamic_import
__all__
=
[
'TTSExecutor'
]
__all__
=
[
'TTSExecutor'
]
...
...
paddlespeech/cli/vector/infer.py
浏览文件 @
58028509
...
@@ -32,7 +32,7 @@ from .pretrained_models import model_alias
...
@@ -32,7 +32,7 @@ from .pretrained_models import model_alias
from
.pretrained_models
import
pretrained_models
from
.pretrained_models
import
pretrained_models
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.compliance.librosa
import
melspectrogram
from
paddleaudio.compliance.librosa
import
melspectrogram
from
paddlespeech.
s2t.
utils.dynamic_import
import
dynamic_import
from
paddlespeech.utils.dynamic_import
import
dynamic_import
from
paddlespeech.vector.io.batch
import
feature_normalize
from
paddlespeech.vector.io.batch
import
feature_normalize
from
paddlespeech.vector.modules.sid_model
import
SpeakerIdetification
from
paddlespeech.vector.modules.sid_model
import
SpeakerIdetification
...
...
paddlespeech/cls/exps/panns/predict.py
浏览文件 @
58028509
...
@@ -17,12 +17,12 @@ import os
...
@@ -17,12 +17,12 @@ import os
import
paddle
import
paddle
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
import
yaml
import
yaml
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.backends
import
load
as
load_audio
from
paddleaudio.features
import
LogMelSpectrogram
from
paddleaudio.features
import
LogMelSpectrogram
from
paddleaudio.utils
import
logger
from
paddleaudio.utils
import
logger
from
paddlespeech.cls.models
import
SoundClassifier
from
paddlespeech.cls.models
import
SoundClassifier
from
paddlespeech.
s2t.
utils.dynamic_import
import
dynamic_import
from
paddlespeech.utils.dynamic_import
import
dynamic_import
# yapf: disable
# yapf: disable
parser
=
argparse
.
ArgumentParser
(
__doc__
)
parser
=
argparse
.
ArgumentParser
(
__doc__
)
...
...
paddlespeech/cls/exps/panns/train.py
浏览文件 @
58028509
...
@@ -16,12 +16,12 @@ import os
...
@@ -16,12 +16,12 @@ import os
import
paddle
import
paddle
import
yaml
import
yaml
from
paddleaudio.features
import
LogMelSpectrogram
from
paddleaudio.features
import
LogMelSpectrogram
from
paddleaudio.utils
import
logger
from
paddleaudio.utils
import
logger
from
paddleaudio.utils
import
Timer
from
paddleaudio.utils
import
Timer
from
paddlespeech.cls.models
import
SoundClassifier
from
paddlespeech.cls.models
import
SoundClassifier
from
paddlespeech.
s2t.
utils.dynamic_import
import
dynamic_import
from
paddlespeech.utils.dynamic_import
import
dynamic_import
# yapf: disable
# yapf: disable
parser
=
argparse
.
ArgumentParser
(
__doc__
)
parser
=
argparse
.
ArgumentParser
(
__doc__
)
...
...
paddlespeech/server/engine/tts/online/python/tts_engine.py
浏览文件 @
58028509
...
@@ -26,7 +26,6 @@ from paddlespeech.cli.log import logger
...
@@ -26,7 +26,6 @@ from paddlespeech.cli.log import logger
from
paddlespeech.cli.tts.infer
import
TTSExecutor
from
paddlespeech.cli.tts.infer
import
TTSExecutor
from
paddlespeech.cli.utils
import
download_and_decompress
from
paddlespeech.cli.utils
import
download_and_decompress
from
paddlespeech.cli.utils
import
MODEL_HOME
from
paddlespeech.cli.utils
import
MODEL_HOME
from
paddlespeech.s2t.utils.dynamic_import
import
dynamic_import
from
paddlespeech.server.engine.base_engine
import
BaseEngine
from
paddlespeech.server.engine.base_engine
import
BaseEngine
from
paddlespeech.server.utils.audio_process
import
float2pcm
from
paddlespeech.server.utils.audio_process
import
float2pcm
from
paddlespeech.server.utils.util
import
denorm
from
paddlespeech.server.utils.util
import
denorm
...
@@ -34,6 +33,7 @@ from paddlespeech.server.utils.util import get_chunks
...
@@ -34,6 +33,7 @@ from paddlespeech.server.utils.util import get_chunks
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend
import
English
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.frontend.zh_frontend
import
Frontend
from
paddlespeech.t2s.modules.normalizer
import
ZScore
from
paddlespeech.t2s.modules.normalizer
import
ZScore
from
paddlespeech.utils.dynamic_import
import
dynamic_import
__all__
=
[
'TTSEngine'
]
__all__
=
[
'TTSEngine'
]
...
...
paddlespeech/t2s/exps/synthesize_streaming.py
浏览文件 @
58028509
...
@@ -24,7 +24,6 @@ from paddle.static import InputSpec
...
@@ -24,7 +24,6 @@ from paddle.static import InputSpec
from
timer
import
timer
from
timer
import
timer
from
yacs.config
import
CfgNode
from
yacs.config
import
CfgNode
from
paddlespeech.s2t.utils.dynamic_import
import
dynamic_import
from
paddlespeech.t2s.exps.syn_utils
import
denorm
from
paddlespeech.t2s.exps.syn_utils
import
denorm
from
paddlespeech.t2s.exps.syn_utils
import
get_chunks
from
paddlespeech.t2s.exps.syn_utils
import
get_chunks
from
paddlespeech.t2s.exps.syn_utils
import
get_frontend
from
paddlespeech.t2s.exps.syn_utils
import
get_frontend
...
@@ -33,6 +32,7 @@ from paddlespeech.t2s.exps.syn_utils import get_voc_inference
...
@@ -33,6 +32,7 @@ from paddlespeech.t2s.exps.syn_utils import get_voc_inference
from
paddlespeech.t2s.exps.syn_utils
import
model_alias
from
paddlespeech.t2s.exps.syn_utils
import
model_alias
from
paddlespeech.t2s.exps.syn_utils
import
voc_to_static
from
paddlespeech.t2s.exps.syn_utils
import
voc_to_static
from
paddlespeech.t2s.utils
import
str2bool
from
paddlespeech.t2s.utils
import
str2bool
from
paddlespeech.utils.dynamic_import
import
dynamic_import
def
evaluate
(
args
):
def
evaluate
(
args
):
...
@@ -212,10 +212,7 @@ def parse_args():
...
@@ -212,10 +212,7 @@ def parse_args():
choices
=
[
'fastspeech2_csmsc'
],
choices
=
[
'fastspeech2_csmsc'
],
help
=
'Choose acoustic model type of tts task.'
)
help
=
'Choose acoustic model type of tts task.'
)
parser
.
add_argument
(
parser
.
add_argument
(
'--am_config'
,
'--am_config'
,
type
=
str
,
default
=
None
,
help
=
'Config of acoustic model.'
)
type
=
str
,
default
=
None
,
help
=
'Config of acoustic model.'
)
parser
.
add_argument
(
parser
.
add_argument
(
'--am_ckpt'
,
'--am_ckpt'
,
type
=
str
,
type
=
str
,
...
@@ -245,10 +242,7 @@ def parse_args():
...
@@ -245,10 +242,7 @@ def parse_args():
],
],
help
=
'Choose vocoder type of tts task.'
)
help
=
'Choose vocoder type of tts task.'
)
parser
.
add_argument
(
parser
.
add_argument
(
'--voc_config'
,
'--voc_config'
,
type
=
str
,
default
=
None
,
help
=
'Config of voc.'
)
type
=
str
,
default
=
None
,
help
=
'Config of voc.'
)
parser
.
add_argument
(
parser
.
add_argument
(
'--voc_ckpt'
,
type
=
str
,
default
=
None
,
help
=
'Checkpoint file of voc.'
)
'--voc_ckpt'
,
type
=
str
,
default
=
None
,
help
=
'Checkpoint file of voc.'
)
parser
.
add_argument
(
parser
.
add_argument
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录