Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Parakeet
提交
af98dad3
P
Parakeet
项目概览
PaddlePaddle
/
Parakeet
通知
8
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Parakeet
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
af98dad3
编写于
3月 10, 2020
作者:
C
chenfeiyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix for compatability of python2 and lower versions of numpy
上级
c2cf81c3
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
47 addition
and
5 deletion
+47
-5
examples/clarinet/synthesis.py
examples/clarinet/synthesis.py
+1
-0
examples/clarinet/train.py
examples/clarinet/train.py
+1
-0
examples/clarinet/utils.py
examples/clarinet/utils.py
+1
-0
examples/deepvoice3/data.py
examples/deepvoice3/data.py
+10
-4
examples/deepvoice3/synthesis.py
examples/deepvoice3/synthesis.py
+1
-0
examples/deepvoice3/train.py
examples/deepvoice3/train.py
+1
-0
examples/deepvoice3/utils.py
examples/deepvoice3/utils.py
+1
-0
examples/wavenet/data.py
examples/wavenet/data.py
+1
-0
examples/wavenet/synthesis.py
examples/wavenet/synthesis.py
+1
-0
examples/wavenet/train.py
examples/wavenet/train.py
+1
-0
examples/wavenet/utils.py
examples/wavenet/utils.py
+1
-0
parakeet/models/clarinet/net.py
parakeet/models/clarinet/net.py
+1
-0
parakeet/models/clarinet/parallel_wavenet.py
parakeet/models/clarinet/parallel_wavenet.py
+1
-0
parakeet/models/clarinet/utils.py
parakeet/models/clarinet/utils.py
+2
-0
parakeet/models/deepvoice3/attention.py
parakeet/models/deepvoice3/attention.py
+1
-0
parakeet/models/deepvoice3/conv1dglu.py
parakeet/models/deepvoice3/conv1dglu.py
+1
-0
parakeet/models/deepvoice3/converter.py
parakeet/models/deepvoice3/converter.py
+1
-0
parakeet/models/deepvoice3/decoder.py
parakeet/models/deepvoice3/decoder.py
+1
-0
parakeet/models/deepvoice3/encoder.py
parakeet/models/deepvoice3/encoder.py
+1
-0
parakeet/models/deepvoice3/loss.py
parakeet/models/deepvoice3/loss.py
+1
-0
parakeet/models/deepvoice3/model.py
parakeet/models/deepvoice3/model.py
+1
-0
parakeet/models/deepvoice3/position_embedding.py
parakeet/models/deepvoice3/position_embedding.py
+1
-0
parakeet/models/wavenet/net.py
parakeet/models/wavenet/net.py
+1
-0
parakeet/models/wavenet/wavenet.py
parakeet/models/wavenet/wavenet.py
+1
-0
parakeet/utils/__init__.py
parakeet/utils/__init__.py
+13
-0
parakeet/utils/layer_tools.py
parakeet/utils/layer_tools.py
+0
-1
未找到文件。
examples/clarinet/synthesis.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
sys
import
argparse
...
...
examples/clarinet/train.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
sys
import
argparse
...
...
examples/clarinet/utils.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
soundfile
as
sf
from
tensorboardX
import
SummaryWriter
...
...
examples/deepvoice3/data.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
csv
from
pathlib
import
Path
...
...
@@ -19,6 +20,7 @@ import numpy as np
import
pandas
as
pd
import
librosa
from
scipy
import
signal
,
io
import
six
from
parakeet.data
import
DatasetMixin
,
TransformDataset
,
FilterDataset
from
parakeet.g2p.en
import
text_to_sequence
,
sequence_to_text
...
...
@@ -32,6 +34,7 @@ class LJSpeechMetaData(DatasetMixin):
self
.
_table
=
pd
.
read_csv
(
csv_path
,
sep
=
"|"
,
encoding
=
"utf-8"
,
header
=
None
,
quoting
=
csv
.
QUOTE_NONE
,
names
=
[
"fname"
,
"raw_text"
,
"normalized_text"
])
...
...
@@ -122,7 +125,6 @@ class Transform(object):
# num_frames
n_frames
=
S_mel_norm
.
shape
[
-
1
]
# CAUTION: original number of frames
return
(
mix_grapheme_phonemes
,
text_length
,
speaker_id
,
S_norm
,
S_mel_norm
,
n_frames
)
...
...
@@ -161,17 +163,21 @@ class DataCollector(object):
S_mel_norm
,
num_frames
)
=
example
text_sequences
.
append
(
np
.
pad
(
mix_grapheme_phonemes
,
(
0
,
max_text_length
-
text_length
)))
),
mode
=
"constant"
))
lin_specs
.
append
(
np
.
pad
(
S_norm
,
((
0
,
0
),
(
self
.
_pad_begin
,
max_frames
-
self
.
_pad_begin
-
num_frames
))))
self
.
_pad_begin
-
num_frames
)),
mode
=
"constant"
))
mel_specs
.
append
(
np
.
pad
(
S_mel_norm
,
((
0
,
0
),
(
self
.
_pad_begin
,
max_frames
-
self
.
_pad_begin
-
num_frames
))))
self
.
_pad_begin
-
num_frames
)),
mode
=
"constant"
))
done_flags
.
append
(
np
.
pad
(
np
.
zeros
((
int
(
np
.
ceil
(
num_frames
//
self
.
_factor
)),
)),
(
0
,
max_decoder_length
-
int
(
np
.
ceil
(
num_frames
//
self
.
_factor
))),
mode
=
"constant"
,
constant_values
=
1
))
text_sequences
=
np
.
array
(
text_sequences
).
astype
(
np
.
int64
)
lin_specs
=
np
.
transpose
(
np
.
array
(
lin_specs
),
...
...
examples/deepvoice3/synthesis.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
argparse
import
ruamel.yaml
...
...
examples/deepvoice3/train.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
argparse
import
ruamel.yaml
...
...
examples/deepvoice3/utils.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
numpy
as
np
from
matplotlib
import
cm
...
...
examples/wavenet/data.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
csv
import
numpy
as
np
import
librosa
...
...
examples/wavenet/synthesis.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
ruamel.yaml
import
argparse
...
...
examples/wavenet/train.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
ruamel.yaml
import
argparse
...
...
examples/wavenet/utils.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
os
import
numpy
as
np
import
soundfile
as
sf
...
...
parakeet/models/clarinet/net.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
itertools
import
numpy
as
np
from
scipy
import
signal
...
...
parakeet/models/clarinet/parallel_wavenet.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
math
import
time
import
itertools
...
...
parakeet/models/clarinet/utils.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
from
paddle
import
fluid
from
paddle.fluid.core
import
ops
...
...
parakeet/models/deepvoice3/attention.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
from
collections
import
namedtuple
from
paddle
import
fluid
...
...
parakeet/models/deepvoice3/conv1dglu.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
from
paddle
import
fluid
...
...
parakeet/models/deepvoice3/converter.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
from
itertools
import
chain
...
...
parakeet/models/deepvoice3/decoder.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
import
paddle.fluid.layers
as
F
import
paddle.fluid.initializer
as
I
...
...
parakeet/models/deepvoice3/encoder.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
from
collections
import
namedtuple
...
...
parakeet/models/deepvoice3/loss.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
from
numba
import
jit
...
...
parakeet/models/deepvoice3/model.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
import
paddle.fluid.layers
as
F
...
...
parakeet/models/deepvoice3/position_embedding.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
numpy
as
np
from
paddle
import
fluid
import
paddle.fluid.layers
as
F
...
...
parakeet/models/wavenet/net.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
itertools
import
numpy
as
np
from
scipy
import
signal
...
...
parakeet/models/wavenet/wavenet.py
浏览文件 @
af98dad3
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
division
import
math
import
time
import
itertools
...
...
parakeet/utils/__init__.py
0 → 100644
浏览文件 @
af98dad3
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
parakeet/utils/layer_tools.py
浏览文件 @
af98dad3
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
numpy
as
np
from
torch
import
nn
import
paddle.fluid.dygraph
as
dg
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录