Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
6655728b
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看板
提交
6655728b
编写于
11月 04, 2021
作者:
小湉湉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add reference
上级
38cf5629
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
27 addition
and
3 deletion
+27
-3
paddlespeech/t2s/data/batch.py
paddlespeech/t2s/data/batch.py
+2
-3
paddlespeech/t2s/data/get_feats.py
paddlespeech/t2s/data/get_feats.py
+1
-0
paddlespeech/t2s/models/fastspeech2/fastspeech2.py
paddlespeech/t2s/models/fastspeech2/fastspeech2.py
+1
-0
paddlespeech/t2s/models/melgan/melgan.py
paddlespeech/t2s/models/melgan/melgan.py
+1
-0
paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan.py
paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan.py
+1
-0
paddlespeech/t2s/models/transformer_tts/transformer_tts.py
paddlespeech/t2s/models/transformer_tts/transformer_tts.py
+1
-0
paddlespeech/t2s/modules/adversarial_loss.py
paddlespeech/t2s/modules/adversarial_loss.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_predictor/duration_predictor.py
...h/t2s/modules/fastspeech2_predictor/duration_predictor.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_predictor/length_regulator.py
...ech/t2s/modules/fastspeech2_predictor/length_regulator.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_predictor/variance_predictor.py
...h/t2s/modules/fastspeech2_predictor/variance_predictor.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/attention.py
...lespeech/t2s/modules/fastspeech2_transformer/attention.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/decoder.py
paddlespeech/t2s/modules/fastspeech2_transformer/decoder.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/decoder_layer.py
...eech/t2s/modules/fastspeech2_transformer/decoder_layer.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/embedding.py
...lespeech/t2s/modules/fastspeech2_transformer/embedding.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/encoder.py
paddlespeech/t2s/modules/fastspeech2_transformer/encoder.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/encoder_layer.py
...eech/t2s/modules/fastspeech2_transformer/encoder_layer.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/lightconv.py
...lespeech/t2s/modules/fastspeech2_transformer/lightconv.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/positionwise_feed_forward.py
...ules/fastspeech2_transformer/positionwise_feed_forward.py
+1
-0
paddlespeech/t2s/modules/fastspeech2_transformer/repeat.py
paddlespeech/t2s/modules/fastspeech2_transformer/repeat.py
+1
-0
paddlespeech/t2s/modules/nets_utils.py
paddlespeech/t2s/modules/nets_utils.py
+1
-0
paddlespeech/t2s/modules/pqmf.py
paddlespeech/t2s/modules/pqmf.py
+1
-0
paddlespeech/t2s/modules/residual_stack.py
paddlespeech/t2s/modules/residual_stack.py
+1
-0
paddlespeech/t2s/modules/stft_loss.py
paddlespeech/t2s/modules/stft_loss.py
+1
-0
paddlespeech/t2s/modules/style_encoder.py
paddlespeech/t2s/modules/style_encoder.py
+1
-0
paddlespeech/t2s/modules/tacotron2/decoder.py
paddlespeech/t2s/modules/tacotron2/decoder.py
+1
-0
paddlespeech/t2s/modules/tacotron2/encoder.py
paddlespeech/t2s/modules/tacotron2/encoder.py
+1
-0
未找到文件。
paddlespeech/t2s/data/batch.py
浏览文件 @
6655728b
...
@@ -52,9 +52,8 @@ def batch_text_id(minibatch, pad_id=0, dtype=np.int64):
...
@@ -52,9 +52,8 @@ def batch_text_id(minibatch, pad_id=0, dtype=np.int64):
"""
"""
peek_example
=
minibatch
[
0
]
peek_example
=
minibatch
[
0
]
assert
len
(
peek_example
.
shape
)
==
1
,
"text example is an 1D tensor"
assert
len
(
peek_example
.
shape
)
==
1
,
"text example is an 1D tensor"
# assume (channel, n_samples) or (n_samples, )
lengths
=
[
example
.
shape
[
0
]
for
example
in
lengths
=
[
example
.
shape
[
0
]
for
example
in
minibatch
]
minibatch
]
# assume (channel, n_samples) or (n_samples, )
max_len
=
np
.
max
(
lengths
)
max_len
=
np
.
max
(
lengths
)
batch
=
[]
batch
=
[]
...
...
paddlespeech/t2s/data/get_feats.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
import
librosa
import
librosa
import
numpy
as
np
import
numpy
as
np
import
pyworld
import
pyworld
...
...
paddlespeech/t2s/models/fastspeech2/fastspeech2.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Fastspeech2 related modules for paddle"""
"""Fastspeech2 related modules for paddle"""
from
typing
import
Dict
from
typing
import
Dict
from
typing
import
Sequence
from
typing
import
Sequence
...
...
paddlespeech/t2s/models/melgan/melgan.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""MelGAN Modules."""
"""MelGAN Modules."""
from
typing
import
Any
from
typing
import
Any
from
typing
import
Dict
from
typing
import
Dict
...
...
paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
import
math
import
math
from
typing
import
Any
from
typing
import
Any
from
typing
import
Dict
from
typing
import
Dict
...
...
paddlespeech/t2s/models/transformer_tts/transformer_tts.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Fastspeech2 related modules for paddle"""
"""Fastspeech2 related modules for paddle"""
from
typing
import
Dict
from
typing
import
Dict
from
typing
import
Sequence
from
typing
import
Sequence
...
...
paddlespeech/t2s/modules/adversarial_loss.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Adversarial loss modules."""
"""Adversarial loss modules."""
import
paddle
import
paddle
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
...
...
paddlespeech/t2s/modules/fastspeech2_predictor/duration_predictor.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Duration predictor related modules."""
"""Duration predictor related modules."""
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
...
...
paddlespeech/t2s/modules/fastspeech2_predictor/length_regulator.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Length regulator related modules."""
"""Length regulator related modules."""
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
...
...
paddlespeech/t2s/modules/fastspeech2_predictor/variance_predictor.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Variance predictor related modules."""
"""Variance predictor related modules."""
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/attention.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Multi-Head Attention layer definition."""
"""Multi-Head Attention layer definition."""
import
math
import
math
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/decoder.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
# 暂时删除了 dyminic conv
# 暂时删除了 dyminic conv
"""Decoder definition."""
"""Decoder definition."""
import
logging
import
logging
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/decoder_layer.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Decoder self-attention layer definition."""
"""Decoder self-attention layer definition."""
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/embedding.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Positional Encoding Module."""
"""Positional Encoding Module."""
import
math
import
math
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/encoder.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
import
logging
import
logging
from
paddle
import
nn
from
paddle
import
nn
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/encoder_layer.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Encoder self-attention layer definition."""
"""Encoder self-attention layer definition."""
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/lightconv.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Lightweight Convolution Module."""
"""Lightweight Convolution Module."""
import
numpy
import
numpy
import
paddle
import
paddle
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/positionwise_feed_forward.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Positionwise feed forward layer definition."""
"""Positionwise feed forward layer definition."""
import
paddle
import
paddle
...
...
paddlespeech/t2s/modules/fastspeech2_transformer/repeat.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Repeat the same layer definition."""
"""Repeat the same layer definition."""
import
paddle
import
paddle
...
...
paddlespeech/t2s/modules/nets_utils.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
from
typeguard
import
check_argument_types
from
typeguard
import
check_argument_types
...
...
paddlespeech/t2s/modules/pqmf.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Pseudo QMF modules."""
"""Pseudo QMF modules."""
import
numpy
as
np
import
numpy
as
np
import
paddle
import
paddle
...
...
paddlespeech/t2s/modules/residual_stack.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Residual stack module in MelGAN."""
"""Residual stack module in MelGAN."""
from
typing
import
Any
from
typing
import
Any
from
typing
import
Dict
from
typing
import
Dict
...
...
paddlespeech/t2s/modules/stft_loss.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
import
paddle
import
paddle
from
paddle
import
nn
from
paddle
import
nn
from
paddle.nn
import
functional
as
F
from
paddle.nn
import
functional
as
F
...
...
paddlespeech/t2s/modules/style_encoder.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Style encoder of GST-Tacotron."""
"""Style encoder of GST-Tacotron."""
from
typing
import
Sequence
from
typing
import
Sequence
...
...
paddlespeech/t2s/modules/tacotron2/decoder.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Tacotron2 decoder related modules."""
"""Tacotron2 decoder related modules."""
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
import
six
import
six
...
...
paddlespeech/t2s/modules/tacotron2/encoder.py
浏览文件 @
6655728b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Modified from espnet(https://github.com/espnet/espnet)
"""Tacotron2 encoder related modules."""
"""Tacotron2 encoder related modules."""
import
paddle
import
paddle
import
six
import
six
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录