Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
28519c1f
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看板
未验证
提交
28519c1f
编写于
10月 29, 2021
作者:
H
Hui Zhang
提交者:
GitHub
10月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #949 from Jackwaterveg/develop
fix the bug of chooing dataloader, remove the log of downloads lm, ch…
上级
0e9a2a5b
e66da76d
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
19 addition
and
15 deletion
+19
-15
deepspeech/exps/deepspeech2/model.py
deepspeech/exps/deepspeech2/model.py
+6
-2
examples/aishell/s0/local/test.sh
examples/aishell/s0/local/test.sh
+1
-1
examples/aishell/s0/local/test_export.sh
examples/aishell/s0/local/test_export.sh
+1
-1
examples/librispeech/s0/local/test.sh
examples/librispeech/s0/local/test.sh
+1
-1
examples/other/1xt2x/aishell/local/test.sh
examples/other/1xt2x/aishell/local/test.sh
+1
-1
examples/other/1xt2x/baidu_en8k/local/test.sh
examples/other/1xt2x/baidu_en8k/local/test.sh
+1
-1
examples/other/1xt2x/librispeech/local/test.sh
examples/other/1xt2x/librispeech/local/test.sh
+1
-1
examples/tiny/s0/conf/deepspeech2.yaml
examples/tiny/s0/conf/deepspeech2.yaml
+1
-1
examples/tiny/s0/conf/deepspeech2_online.yaml
examples/tiny/s0/conf/deepspeech2_online.yaml
+1
-1
examples/tiny/s0/local/test.sh
examples/tiny/s0/local/test.sh
+1
-1
examples/tiny/s1/conf/chunk_confermer.yaml
examples/tiny/s1/conf/chunk_confermer.yaml
+1
-1
examples/tiny/s1/conf/chunk_transformer.yaml
examples/tiny/s1/conf/chunk_transformer.yaml
+1
-1
examples/tiny/s1/conf/conformer.yaml
examples/tiny/s1/conf/conformer.yaml
+1
-1
examples/tiny/s1/conf/transformer.yaml
examples/tiny/s1/conf/transformer.yaml
+1
-1
未找到文件。
deepspeech/exps/deepspeech2/model.py
浏览文件 @
28519c1f
...
@@ -153,8 +153,12 @@ class DeepSpeech2Trainer(Trainer):
...
@@ -153,8 +153,12 @@ class DeepSpeech2Trainer(Trainer):
def
setup_model
(
self
):
def
setup_model
(
self
):
config
=
self
.
config
.
clone
()
config
=
self
.
config
.
clone
()
with
UpdateConfig
(
config
):
with
UpdateConfig
(
config
):
config
.
model
.
feat_size
=
self
.
train_loader
.
collate_fn
.
feature_size
if
self
.
train
:
config
.
model
.
dict_size
=
self
.
train_loader
.
collate_fn
.
vocab_size
config
.
model
.
feat_size
=
self
.
train_loader
.
collate_fn
.
feature_size
config
.
model
.
dict_size
=
self
.
train_loader
.
collate_fn
.
vocab_size
else
:
config
.
model
.
feat_size
=
self
.
test_loader
.
collate_fn
.
feature_size
config
.
model
.
dict_size
=
self
.
test_loader
.
collate_fn
.
vocab_size
if
self
.
args
.
model_type
==
'offline'
:
if
self
.
args
.
model_type
==
'offline'
:
model
=
DeepSpeech2Model
.
from_config
(
config
.
model
)
model
=
DeepSpeech2Model
.
from_config
(
config
.
model
)
...
...
examples/aishell/s0/local/test.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_ch.sh
bash
local
/download_lm_ch.sh
>
dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/aishell/s0/local/test_export.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ jit_model_export_path=$2
...
@@ -13,7 +13,7 @@ jit_model_export_path=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_ch.sh
bash
local
/download_lm_ch.sh
>
dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/librispeech/s0/local/test.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/other/1xt2x/aishell/local/test.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_ch.sh
bash
local
/download_lm_ch.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/other/1xt2x/baidu_en8k/local/test.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/other/1xt2x/librispeech/local/test.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/tiny/s0/conf/deepspeech2.yaml
浏览文件 @
28519c1f
...
@@ -45,7 +45,7 @@ model:
...
@@ -45,7 +45,7 @@ model:
ctc_grad_norm_type
:
null
ctc_grad_norm_type
:
null
training
:
training
:
n_epoch
:
10
n_epoch
:
5
accum_grad
:
1
accum_grad
:
1
lr
:
1e-5
lr
:
1e-5
lr_decay
:
0.8
lr_decay
:
0.8
...
...
examples/tiny/s0/conf/deepspeech2_online.yaml
浏览文件 @
28519c1f
...
@@ -47,7 +47,7 @@ model:
...
@@ -47,7 +47,7 @@ model:
ctc_grad_norm_type
:
null
ctc_grad_norm_type
:
null
training
:
training
:
n_epoch
:
10
n_epoch
:
5
accum_grad
:
1
accum_grad
:
1
lr
:
1e-5
lr
:
1e-5
lr_decay
:
1.0
lr_decay
:
1.0
...
...
examples/tiny/s0/local/test.sh
浏览文件 @
28519c1f
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
model_type
=
$3
# download language model
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
...
...
examples/tiny/s1/conf/chunk_confermer.yaml
浏览文件 @
28519c1f
...
@@ -83,7 +83,7 @@ model:
...
@@ -83,7 +83,7 @@ model:
training
:
training
:
n_epoch
:
20
n_epoch
:
5
accum_grad
:
1
accum_grad
:
1
global_grad_clip
:
5.0
global_grad_clip
:
5.0
optim
:
adam
optim
:
adam
...
...
examples/tiny/s1/conf/chunk_transformer.yaml
浏览文件 @
28519c1f
...
@@ -76,7 +76,7 @@ model:
...
@@ -76,7 +76,7 @@ model:
training
:
training
:
n_epoch
:
20
n_epoch
:
5
accum_grad
:
1
accum_grad
:
1
global_grad_clip
:
5.0
global_grad_clip
:
5.0
optim
:
adam
optim
:
adam
...
...
examples/tiny/s1/conf/conformer.yaml
浏览文件 @
28519c1f
...
@@ -79,7 +79,7 @@ model:
...
@@ -79,7 +79,7 @@ model:
training
:
training
:
n_epoch
:
20
n_epoch
:
5
accum_grad
:
4
accum_grad
:
4
global_grad_clip
:
5.0
global_grad_clip
:
5.0
optim
:
adam
optim
:
adam
...
...
examples/tiny/s1/conf/transformer.yaml
浏览文件 @
28519c1f
...
@@ -73,7 +73,7 @@ model:
...
@@ -73,7 +73,7 @@ model:
training
:
training
:
n_epoch
:
21
n_epoch
:
5
accum_grad
:
1
accum_grad
:
1
global_grad_clip
:
5.0
global_grad_clip
:
5.0
optim
:
adam
optim
:
adam
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录