Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
190f4cc4
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
207
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,发现更多精彩内容 >>
提交
190f4cc4
编写于
10月 22, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
差异文件
update u2 result; fix test.sh
上级
f2f305cd
8539689b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
29 addition
and
16 deletion
+29
-16
examples/librispeech/s2/README.md
examples/librispeech/s2/README.md
+11
-7
examples/librispeech/s2/local/test.sh
examples/librispeech/s2/local/test.sh
+15
-8
examples/librispeech/s2/run.sh
examples/librispeech/s2/run.sh
+3
-1
未找到文件。
examples/librispeech/s2/README.md
浏览文件 @
190f4cc4
# LibriSpeech
## Transformer
| Model | Params | Config | Augmentation| Test Set | Decode Method | Loss | WER % |
| --- | --- | --- | --- | --- | --- | --- | --- |
| transformer | 32.52 M | conf/transformer.yaml | spec_aug | test-clean | attention | 6.395054340362549 | 4.2 |
| transformer | 32.52 M | conf/transformer.yaml | spec_aug | test-clean | ctc_greedy_search | 6.395054340362549 | 5.0 |
| transformer | 32.52 M | conf/transformer.yaml | spec_aug | test-clean | ctc_prefix_beam_search | 6.395054340362549 | |
| transformer | 32.52 M | conf/transformer.yaml | spec_aug | test-clean | attention_rescore | 6.395054340362549 | |
| Model | Params | Config | Augmentation| Loss |
| --- | --- | --- | --- |
| transformer | 32.52 M | conf/transformer.yaml | spec_aug | 6.3197922706604 |
| Test Set | Decode Method | #Snt | #Wrd | Corr | Sub | Del | Ins | Err | S.Err |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| test-clean | attention | 2620 | 52576 | 96.4 | 2.5 | 1.1 | 0.4 | 4.0 | 34.7 |
| test-clean | ctc_greedy_search | 2620 | 52576 | 95.9 | 3.7 | 0.4 | 0.5 | 4.6 | 48.0 |
| test-clean | ctc_prefix_beamsearch | 2620 | 52576 | 95.9 | 3.7 | 0.4 | 0.5 | 4.6 | 47.6 |
| test-clean | attention_rescore | 2620 | 52576 | 96.8 | 2.9 | 0.3 | 0.4 | 3.7 | 38.0 |
examples/librispeech/s2/local/test.sh
浏览文件 @
190f4cc4
...
...
@@ -6,7 +6,7 @@ expdir=exp
datadir
=
data
nj
=
32
lmtag
=
lmtag
=
'nolm'
recog_set
=
"test-clean test-other dev-clean dev-other"
recog_set
=
"test-clean"
...
...
@@ -29,11 +29,18 @@ config_path=$1
dict
=
$2
ckpt_prefix
=
$3
ckpt_dir
=
$(
dirname
`
dirname
${
ckpt_prefix
}
`
)
echo
"ckpt dir:
${
ckpt_dir
}
"
ckpt_tag
=
$(
basename
${
ckpt_prefix
}
)
echo
"ckpt tag:
${
ckpt_tag
}
"
chunk_mode
=
false
if
[[
${
config_path
}
=
~ ^.
*
chunk_.
*
yaml
$
]]
;
then
chunk_mode
=
true
fi
echo
"chunk mode
${
chunk_mode
}
"
echo
"chunk mode
:
${
chunk_mode
}
"
# download language model
...
...
@@ -46,13 +53,13 @@ pids=() # initialize pids
for
dmethd
in
attention ctc_greedy_search ctc_prefix_beam_search attention_rescoring
;
do
(
echo
"
${
dmethd
}
decoding
"
echo
"
decode method:
${
dmethd
}
"
for
rtask
in
${
recog_set
}
;
do
(
echo
"
${
rtask
}
dataset
"
decode_dir
=
decode_
${
rtask
/-/_
}
_
${
dmethd
}
_
$(
basename
${
config_path
%.*
}
)
_
${
lm
tag
}
echo
"
dataset:
${
rtask
}
"
decode_dir
=
${
ckpt_dir
}
/decode/decode_
${
rtask
/-/_
}
_
${
dmethd
}
_
$(
basename
${
config_path
%.*
}
)
_
${
lmtag
}
_
${
ckpt_
tag
}
feat_recog_dir
=
${
datadir
}
mkdir
-p
${
expdir
}
/
${
decode_dir
}
mkdir
-p
${
decode_dir
}
mkdir
-p
${
feat_recog_dir
}
# split data
...
...
@@ -63,7 +70,7 @@ for dmethd in attention ctc_greedy_search ctc_prefix_beam_search attention_resco
# set batchsize 0 to disable batch decoding
batch_size
=
1
${
decode_cmd
}
JOB
=
1:
${
nj
}
${
expdir
}
/
${
decode_dir
}
/log/decode.JOB.log
\
${
decode_cmd
}
JOB
=
1:
${
nj
}
${
decode_dir
}
/log/decode.JOB.log
\
python3
-u
${
BIN_DIR
}
/test.py
\
--model-name
u2_kaldi
\
--run-mode
test
\
...
...
@@ -71,7 +78,7 @@ for dmethd in attention ctc_greedy_search ctc_prefix_beam_search attention_resco
--dict-path
${
dict
}
\
--config
${
config_path
}
\
--checkpoint_path
${
ckpt_prefix
}
\
--result-file
${
expdir
}
/
${
decode_dir
}
/data.JOB.json
\
--result-file
${
decode_dir
}
/data.JOB.json
\
--opts
decoding.decoding_method
${
dmethd
}
\
--opts
decoding.batch_size
${
batch_size
}
\
--opts
data.test_manifest
${
feat_recog_dir
}
/split
${
nj
}
/JOB/manifest.
${
rtask
}
...
...
examples/librispeech/s2/run.sh
浏览文件 @
190f4cc4
#!/bin/bash
set
-e
.
./path.sh
||
exit
1
;
...
...
@@ -7,8 +8,9 @@ set -e
stage
=
0
stop_stage
=
100
conf_path
=
conf/transformer.yaml
dict_path
=
data/
train_960_unigram
5000_units.txt
dict_path
=
data/
bpe_unigram_
5000_units.txt
avg_num
=
10
source
${
MAIN_ROOT
}
/utils/parse_options.sh
||
exit
1
;
avg_ckpt
=
avg_
${
avg_num
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录