提交 aab02997 编写于 作者: H Hui Zhang

fix specaug config

上级 f4be7685
......@@ -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)
......
......@@ -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": true
"replace_with_zero": false
},
"prob": 1.0
}
]
]
\ No newline at end of file
......@@ -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
}
......
......@@ -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": true
"replace_with_zero": false
},
"prob": 0.0
"prob": 1.0
}
]
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册