Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
ba1d7dc6
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看板
提交
ba1d7dc6
编写于
5月 17, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
all decode method test scripts; result readme
上级
146a60d9
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
71 addition
and
17 deletion
+71
-17
deepspeech/exps/u2/model.py
deepspeech/exps/u2/model.py
+3
-1
examples/aishell/s1/README.md
examples/aishell/s1/README.md
+14
-0
examples/aishell/s1/local/test.sh
examples/aishell/s1/local/test.sh
+33
-11
examples/librispeech/README.md
examples/librispeech/README.md
+1
-1
examples/librispeech/s1/README.md
examples/librispeech/s1/README.md
+16
-0
examples/librispeech/s1/conf/conformer.yaml
examples/librispeech/s1/conf/conformer.yaml
+2
-2
examples/librispeech/s1/local/test.sh
examples/librispeech/s1/local/test.sh
+2
-2
未找到文件。
deepspeech/exps/u2/model.py
浏览文件 @
ba1d7dc6
...
...
@@ -450,7 +450,7 @@ class U2Tester(U2Trainer):
logger
.
info
(
msg
)
# test meta results
err_meta_path
=
os
.
path
.
splitext
(
self
.
args
.
checkpoint_path
)[
0
]
+
'.err'
err_meta_path
=
os
.
path
.
splitext
(
self
.
args
.
result_file
)[
0
]
+
'.err'
err_type_str
=
"{}"
.
format
(
error_rate_type
)
with
open
(
err_meta_path
,
'w'
)
as
f
:
data
=
json
.
dumps
({
...
...
@@ -471,6 +471,8 @@ class U2Tester(U2Trainer):
errors_sum
,
"ref_len"
:
len_refs
,
"decode_method"
:
self
.
config
.
decoding
.
decoding_method
,
})
f
.
write
(
data
+
'
\n
'
)
...
...
examples/aishell/s1/README.md
0 → 100644
浏览文件 @
ba1d7dc6
# Aishell
## Conformer
| Model | Config | Augmentation| Test set | Decode method | Loss | WER |
| --- | --- | --- | --- | --- | --- |
| conformer | conf/conformer.yaml | spec_aug + shift | test | attention | - | 0.059858 |
| conformer | conf/conformer.yaml | spec_aug + shift | test | ctc_greedy_search | - | 0.062311 |
| conformer | conf/conformer.yaml | spec_aug + shift | test | ctc_prefix_beam_search | - | 0.062196 |
| conformer | conf/conformer.yaml | spec_aug + shift | test | attention_rescoring | - | 0.054694 |
## Transformer
| Model | Config | Augmentation| Test set | Decode method | Loss | WER |
| --- | --- | --- | --- | --- | --- |
| transformer | conf/transformer.yaml | spec_aug + shift | test | attention | - | - |
examples/aishell/s1/local/test.sh
浏览文件 @
ba1d7dc6
...
...
@@ -21,17 +21,39 @@ ckpt_prefix=$2
# exit 1
#fi
python3
-u
${
BIN_DIR
}
/test.py
\
--device
${
device
}
\
--nproc
1
\
--config
${
config_path
}
\
--result_file
${
ckpt_prefix
}
.rsl
\
--checkpoint_path
${
ckpt_prefix
}
if
[
$?
-ne
0
]
;
then
echo
"Failed in evaluation!"
exit
1
fi
for
type
in
attention ctc_greedy_search
;
do
echo
"decoding
${
type
}
"
batch_size
=
64
python3
-u
${
BIN_DIR
}
/test.py
\
--device
${
device
}
\
--nproc
1
\
--config
${
config_path
}
\
--result_file
${
ckpt_prefix
}
.
${
type
}
.rsl
\
--checkpoint_path
${
ckpt_prefix
}
\
--opts
decoding.decoding_method
${
type
}
decoding.batch_size
${
batch_size
}
if
[
$?
-ne
0
]
;
then
echo
"Failed in evaluation!"
exit
1
fi
done
for
type
in
ctc_prefix_beam_search attention_rescoring
;
do
echo
"decoding
${
type
}
"
batch_size
=
1
python3
-u
${
BIN_DIR
}
/test.py
\
--device
${
device
}
\
--nproc
1
\
--config
${
config_path
}
\
--result_file
${
ckpt_prefix
}
.
${
type
}
.rsl
\
--checkpoint_path
${
ckpt_prefix
}
\
--opts
decoding.decoding_method
${
type
}
decoding.batch_size
${
batch_size
}
if
[
$?
-ne
0
]
;
then
echo
"Failed in evaluation!"
exit
1
fi
done
exit
0
examples/librispeech/README.md
浏览文件 @
ba1d7dc6
# ASR
*
s0 is for deepspeech2
*
s1 is for U2
*
s1 is for
transformer/conformer/
U2
examples/librispeech/s1/README.md
浏览文件 @
ba1d7dc6
# LibriSpeech
## Conformer
| Model | Config | Augmentation| Test set | Decode method | Loss | WER |
| --- | --- | --- | --- | --- | --- |
| conformer | conf/conformer.yaml | spec_aug + shift | test-all | attention | test-all 6.35 | 0.057117 |
| conformer | conf/conformer.yaml | spec_aug + shift | test-clean | attention | test-all 6.35 | 0.030162 |
| conformer | conf/conformer.yaml | spec_aug + shift | test-clean | ctc_greedy_search | test-all 6.35 | 0.037910 |
| conformer | conf/conformer.yaml | spec_aug + shift | test-clean | ctc_prefix_beam_search | test-all 6.35 | 0.037761 |
| conformer | conf/conformer.yaml | spec_aug + shift | test-clean | attention_rescoring | test-all 6.35 | 0.032115 |
## Transformer
| Model | Config | Augmentation| Test set | Decode method | Loss | WER |
| --- | --- | --- | --- | --- | --- |
| transformer | conf/transformer.yaml | spec_aug + shift | test-all | attention | test-all 6.98 | 0.066500 |
| transformer | conf/transformer.yaml | spec_aug + shift | test-clean | attention | test-all 6.98 | 0.036 |
examples/librispeech/s1/conf/conformer.yaml
浏览文件 @
ba1d7dc6
...
...
@@ -14,7 +14,7 @@ data:
min_output_len
:
0.0
# tokens
max_output_len
:
400.0
# tokens
min_output_input_ratio
:
0.05
max_output_input_ratio
:
10.0
max_output_input_ratio
:
.inf
raw_wav
:
True
# use raw_wav or kaldi feature
specgram_type
:
fbank
#linear, mfcc, fbank
feat_dim
:
80
...
...
@@ -77,7 +77,7 @@ model:
training
:
n_epoch
:
120
accum_grad
:
8
global_grad_clip
:
5
.0
global_grad_clip
:
3
.0
optim
:
adam
optim_conf
:
lr
:
0.004
...
...
examples/librispeech/s1/local/test.sh
浏览文件 @
ba1d7dc6
...
...
@@ -28,7 +28,7 @@ for type in attention ctc_greedy_search; do
--device
${
device
}
\
--nproc
1
\
--config
${
config_path
}
\
--result_file
${
ckpt_prefix
}
.rsl
\
--result_file
${
ckpt_prefix
}
.
${
type
}
.
rsl
\
--checkpoint_path
${
ckpt_prefix
}
\
--opts
decoding.decoding_method
${
type
}
decoding.batch_size
${
batch_size
}
...
...
@@ -45,7 +45,7 @@ for type in ctc_prefix_beam_search attention_rescoring; do
--device
${
device
}
\
--nproc
1
\
--config
${
config_path
}
\
--result_file
${
ckpt_prefix
}
.rsl
\
--result_file
${
ckpt_prefix
}
.
${
type
}
.
rsl
\
--checkpoint_path
${
ckpt_prefix
}
\
--opts
decoding.decoding_method
${
type
}
decoding.batch_size
${
batch_size
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录