Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
9a45a75a
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看板
提交
9a45a75a
编写于
10月 29, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format code
上级
0730368e
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
14 addition
and
18 deletion
+14
-18
README.md
README.md
+9
-9
deepspeech/exps/deepspeech2/model.py
deepspeech/exps/deepspeech2/model.py
+0
-1
parakeet/data/batch.py
parakeet/data/batch.py
+2
-2
parakeet/exps/tacotron2/ljspeech.py
parakeet/exps/tacotron2/ljspeech.py
+3
-6
未找到文件。
README.md
浏览文件 @
9a45a75a
deepspeech/exps/deepspeech2/model.py
浏览文件 @
9a45a75a
...
...
@@ -189,7 +189,6 @@ class DeepSpeech2Trainer(Trainer):
self
.
lr_scheduler
=
lr_scheduler
logger
.
info
(
"Setup optimizer/lr_scheduler!"
)
def
setup_dataloader
(
self
):
config
=
self
.
config
.
clone
()
config
.
defrost
()
...
...
parakeet/data/batch.py
浏览文件 @
9a45a75a
...
...
@@ -53,8 +53,8 @@ def batch_text_id(minibatch, pad_id=0, dtype=np.int64):
peek_example
=
minibatch
[
0
]
assert
len
(
peek_example
.
shape
)
==
1
,
"text example is an 1D tensor"
lengths
=
[
example
.
shape
[
0
]
for
example
in
minibatch
]
# assume (channel, n_samples) or (n_samples, )
lengths
=
[
example
.
shape
[
0
]
for
example
in
minibatch
]
# assume (channel, n_samples) or (n_samples, )
max_len
=
np
.
max
(
lengths
)
batch
=
[]
...
...
parakeet/exps/tacotron2/ljspeech.py
浏览文件 @
9a45a75a
...
...
@@ -67,19 +67,16 @@ class LJSpeechCollector(object):
# Sort by text_len in descending order
texts
=
[
i
for
i
,
_
in
sorted
(
i
for
i
,
_
in
sorted
(
zip
(
texts
,
text_lens
),
key
=
lambda
x
:
x
[
1
],
reverse
=
True
)
]
mels
=
[
i
for
i
,
_
in
sorted
(
i
for
i
,
_
in
sorted
(
zip
(
mels
,
text_lens
),
key
=
lambda
x
:
x
[
1
],
reverse
=
True
)
]
mel_lens
=
[
i
for
i
,
_
in
sorted
(
i
for
i
,
_
in
sorted
(
zip
(
mel_lens
,
text_lens
),
key
=
lambda
x
:
x
[
1
],
reverse
=
True
)
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录