Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
aab02997
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
206
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,发现更多精彩内容 >>
提交
aab02997
编写于
8月 23, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix specaug config
上级
f4be7685
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
32 addition
and
20 deletion
+32
-20
deepspeech/frontend/augmentor/spec_augment.py
deepspeech/frontend/augmentor/spec_augment.py
+2
-0
examples/aishell/s0/conf/augmentation.json
examples/aishell/s0/conf/augmentation.json
+6
-5
examples/aishell/s1/conf/augmentation.json
examples/aishell/s1/conf/augmentation.json
+2
-1
examples/augmentation/augmentation.json
examples/augmentation/augmentation.json
+5
-4
examples/librispeech/s0/conf/augmentation.json
examples/librispeech/s0/conf/augmentation.json
+2
-1
examples/librispeech/s1/conf/augmentation.json
examples/librispeech/s1/conf/augmentation.json
+2
-1
examples/librispeech/s2/conf/augmentation.json
examples/librispeech/s2/conf/augmentation.json
+2
-1
examples/timit/s1/conf/augmentation.json
examples/timit/s1/conf/augmentation.json
+2
-1
examples/tiny/s0/conf/augmentation.json
examples/tiny/s0/conf/augmentation.json
+7
-5
examples/tiny/s1/conf/augmentation.json
examples/tiny/s1/conf/augmentation.json
+2
-1
未找到文件。
deepspeech/frontend/augmentor/spec_augment.py
浏览文件 @
aab02997
...
...
@@ -245,6 +245,8 @@ class SpecAugmentor(AugmentorBase):
Returns:
x (np.ndarray): `[T, F]`
"""
assert
isinstance
(
x
,
np
.
ndarray
)
assert
x
.
ndim
==
2
x
=
self
.
time_warp
(
x
,
self
.
mode
)
x
=
self
.
mask_freq
(
x
,
self
.
replace_with_zero
)
x
=
self
.
mask_time
(
x
,
self
.
replace_with_zero
)
...
...
examples/aishell/s0/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -19,17 +19,18 @@
{
"type"
:
"specaug"
,
"params"
:
{
"F"
:
10
,
"T"
:
50
,
"W"
:
5
,
"warp_mode"
:
"PIL"
,
"F"
:
30
,
"n_freq_masks"
:
2
,
"T"
:
40
,
"n_time_masks"
:
2
,
"p"
:
1.0
,
"W"
:
80
,
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
tru
e
"replace_with_zero"
:
fals
e
},
"prob"
:
1.0
}
]
]
\ No newline at end of file
examples/aishell/s1/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -28,7 +28,8 @@
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
examples/augmentation/augmentation.json
浏览文件 @
aab02997
...
...
@@ -52,17 +52,18 @@
{
"type"
:
"specaug"
,
"params"
:
{
"W"
:
80
,
"warp_mode"
:
"PIL"
,
"F"
:
10
,
"T"
:
50
,
"n_freq_masks"
:
2
,
"T"
:
50
,
"n_time_masks"
:
2
,
"p"
:
1.0
,
"W"
:
80
,
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
tru
e
"replace_with_zero"
:
fals
e
},
"prob"
:
0
.0
"prob"
:
1
.0
}
]
examples/librispeech/s0/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -28,7 +28,8 @@
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
examples/librispeech/s1/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -28,7 +28,8 @@
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
examples/librispeech/s2/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -11,7 +11,8 @@
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
examples/timit/s1/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -28,7 +28,8 @@
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
examples/tiny/s0/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -6,7 +6,7 @@
"max_speed_rate"
:
1.1
,
"num_rates"
:
3
},
"prob"
:
1
.0
"prob"
:
0
.0
},
{
"type"
:
"shift"
,
...
...
@@ -19,16 +19,18 @@
{
"type"
:
"specaug"
,
"params"
:
{
"F"
:
10
,
"T"
:
50
,
"W"
:
5
,
"warp_mode"
:
"PIL"
,
"F"
:
30
,
"n_freq_masks"
:
2
,
"T"
:
40
,
"n_time_masks"
:
2
,
"p"
:
1.0
,
"W"
:
80
,
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
examples/tiny/s1/conf/augmentation.json
浏览文件 @
aab02997
...
...
@@ -28,7 +28,8 @@
"adaptive_number_ratio"
:
0
,
"adaptive_size_ratio"
:
0
,
"max_n_time_masks"
:
20
,
"replace_with_zero"
:
true
"replace_with_zero"
:
true
,
"warp_mode"
:
"PIL"
},
"prob"
:
1.0
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录