Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
2fa68123
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,发现更多精彩内容 >>
未验证
提交
2fa68123
编写于
11月 02, 2021
作者:
H
Hui Zhang
提交者:
GitHub
11月 02, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #955 from Jackwaterveg/fix
fix the run_test in test_export
上级
980944da
b966bb8a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
16 deletion
+24
-16
deepspeech/exps/deepspeech2/model.py
deepspeech/exps/deepspeech2/model.py
+15
-4
deepspeech/training/trainer.py
deepspeech/training/trainer.py
+5
-8
examples/other/1xt2x/README.md
examples/other/1xt2x/README.md
+4
-4
未找到文件。
deepspeech/exps/deepspeech2/model.py
浏览文件 @
2fa68123
...
...
@@ -21,6 +21,11 @@ from typing import Optional
import
jsonlines
import
numpy
as
np
import
paddle
from
paddle
import
distributed
as
dist
from
paddle
import
inference
from
paddle.io
import
DataLoader
from
yacs.config
import
CfgNode
from
deepspeech.frontend.featurizer.text_featurizer
import
TextFeaturizer
from
deepspeech.io.collator
import
SpeechCollator
from
deepspeech.io.dataset
import
ManifestDataset
...
...
@@ -32,6 +37,7 @@ from deepspeech.models.ds2_online import DeepSpeech2InferModelOnline
from
deepspeech.models.ds2_online
import
DeepSpeech2ModelOnline
from
deepspeech.training.gradclip
import
ClipGradByGlobalNormWithLog
from
deepspeech.training.reporter
import
report
from
deepspeech.training.timer
import
Timer
from
deepspeech.training.trainer
import
Trainer
from
deepspeech.utils
import
error_rate
from
deepspeech.utils
import
layer_tools
...
...
@@ -39,10 +45,6 @@ from deepspeech.utils import mp_tools
from
deepspeech.utils.log
import
Autolog
from
deepspeech.utils.log
import
Log
from
deepspeech.utils.utility
import
UpdateConfig
from
paddle
import
distributed
as
dist
from
paddle
import
inference
from
paddle.io
import
DataLoader
from
yacs.config
import
CfgNode
logger
=
Log
(
__name__
).
getlog
()
...
...
@@ -441,6 +443,15 @@ class DeepSpeech2ExportTester(DeepSpeech2Tester):
return
result_transcripts
def
run_test
(
self
):
"""Do Test/Decode"""
try
:
with
Timer
(
"Test/Decode Done: {}"
):
with
self
.
eval
():
self
.
test
()
except
KeyboardInterrupt
:
exit
(
-
1
)
def
static_forward_online
(
self
,
audio
,
audio_len
,
decoder_chunk_size
:
int
=
1
):
"""
...
...
deepspeech/training/trainer.py
浏览文件 @
2fa68123
...
...
@@ -18,6 +18,9 @@ from contextlib import contextmanager
from
pathlib
import
Path
import
paddle
from
paddle
import
distributed
as
dist
from
tensorboardX
import
SummaryWriter
from
deepspeech.training.reporter
import
ObsScope
from
deepspeech.training.reporter
import
report
from
deepspeech.training.timer
import
Timer
...
...
@@ -28,8 +31,6 @@ from deepspeech.utils.log import Log
from
deepspeech.utils.utility
import
all_version
from
deepspeech.utils.utility
import
seed_all
from
deepspeech.utils.utility
import
UpdateConfig
from
paddle
import
distributed
as
dist
from
tensorboardX
import
SummaryWriter
__all__
=
[
"Trainer"
]
...
...
@@ -347,12 +348,8 @@ class Trainer():
try
:
with
Timer
(
"Test/Decode Done: {}"
):
with
self
.
eval
():
if
hasattr
(
self
,
"apply_static"
)
and
self
.
apply_static
is
True
:
self
.
test
()
else
:
self
.
restore
()
self
.
test
()
self
.
restore
()
self
.
test
()
except
KeyboardInterrupt
:
exit
(
-
1
)
...
...
examples/other/1xt2x/README.md
浏览文件 @
2fa68123
...
...
@@ -12,8 +12,8 @@ Convert Deepspeech 1.8 released model to 2.x.
# The released model
Acoustic Model | Training Data | Hours of Speech | Token-based | CER | WER
Acoustic Model | Training Data | Hours of Speech | Token-based | CER | WER
:-------------:| :------------:| :---------------: | :---------: | :---: | :----:
Ds2 Offline Aishell 1xt2x model| Aishell Dataset | 151 h | Char-based | 0.080447 |
Ds2 Offline Librispeech 1xt2x model | Librispeech Dataset | 960 h | Word-based | | 0.068548
Ds2 Offline Baidu en8k 1x2x model | Baidu Internal English Dataset | 8628 h |Word-based | | 0.054112
Ds2 Offline Aishell 1xt2x model| Aishell Dataset | 151 h | Char-based | 0.080447 |
Ds2 Offline Librispeech 1xt2x model | Librispeech Dataset | 960 h | Word-based | | 0.068548
Ds2 Offline Baidu en8k 1x2x model | Baidu Internal English Dataset | 8628 h |Word-based | | 0.054112
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录