Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
e66da76d
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,发现更多精彩内容 >>
提交
e66da76d
编写于
10月 29, 2021
作者:
H
huangyuxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the bug of chooing dataloader, remove the log of downloads lm, change the epoch in tiny
上级
34178893
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
28 addition
and
25 deletion
+28
-25
README.md
README.md
+9
-9
deepspeech/exps/deepspeech2/model.py
deepspeech/exps/deepspeech2/model.py
+6
-3
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
未找到文件。
README.md
浏览文件 @
e66da76d
deepspeech/exps/deepspeech2/model.py
浏览文件 @
e66da76d
...
...
@@ -153,8 +153,12 @@ class DeepSpeech2Trainer(Trainer):
def
setup_model
(
self
):
config
=
self
.
config
.
clone
()
with
UpdateConfig
(
config
):
if
self
.
train
:
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'
:
model
=
DeepSpeech2Model
.
from_config
(
config
.
model
)
...
...
@@ -189,7 +193,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
()
...
...
examples/aishell/s0/local/test.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
# download language model
bash
local
/download_lm_ch.sh
bash
local
/download_lm_ch.sh
>
dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/aishell/s0/local/test_export.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ jit_model_export_path=$2
model_type
=
$3
# download language model
bash
local
/download_lm_ch.sh
bash
local
/download_lm_ch.sh
>
dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/librispeech/s0/local/test.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/other/1xt2x/aishell/local/test.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
# download language model
bash
local
/download_lm_ch.sh
bash
local
/download_lm_ch.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/other/1xt2x/baidu_en8k/local/test.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/other/1xt2x/librispeech/local/test.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/tiny/s0/conf/deepspeech2.yaml
浏览文件 @
e66da76d
...
...
@@ -45,7 +45,7 @@ model:
ctc_grad_norm_type
:
null
training
:
n_epoch
:
10
n_epoch
:
5
accum_grad
:
1
lr
:
1e-5
lr_decay
:
0.8
...
...
examples/tiny/s0/conf/deepspeech2_online.yaml
浏览文件 @
e66da76d
...
...
@@ -47,7 +47,7 @@ model:
ctc_grad_norm_type
:
null
training
:
n_epoch
:
10
n_epoch
:
5
accum_grad
:
1
lr
:
1e-5
lr_decay
:
1.0
...
...
examples/tiny/s0/local/test.sh
浏览文件 @
e66da76d
...
...
@@ -13,7 +13,7 @@ ckpt_prefix=$2
model_type
=
$3
# download language model
bash
local
/download_lm_en.sh
bash
local
/download_lm_en.sh
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
exit
1
fi
...
...
examples/tiny/s1/conf/chunk_confermer.yaml
浏览文件 @
e66da76d
...
...
@@ -83,7 +83,7 @@ model:
training
:
n_epoch
:
20
n_epoch
:
5
accum_grad
:
1
global_grad_clip
:
5.0
optim
:
adam
...
...
examples/tiny/s1/conf/chunk_transformer.yaml
浏览文件 @
e66da76d
...
...
@@ -76,7 +76,7 @@ model:
training
:
n_epoch
:
20
n_epoch
:
5
accum_grad
:
1
global_grad_clip
:
5.0
optim
:
adam
...
...
examples/tiny/s1/conf/conformer.yaml
浏览文件 @
e66da76d
...
...
@@ -79,7 +79,7 @@ model:
training
:
n_epoch
:
20
n_epoch
:
5
accum_grad
:
4
global_grad_clip
:
5.0
optim
:
adam
...
...
examples/tiny/s1/conf/transformer.yaml
浏览文件 @
e66da76d
...
...
@@ -73,7 +73,7 @@ model:
training
:
n_epoch
:
21
n_epoch
:
5
accum_grad
:
1
global_grad_clip
:
5.0
optim
:
adam
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录