From eedd204a5b8fcbeae05e2e816fb9f69b977f1839 Mon Sep 17 00:00:00 2001 From: zr_jin Date: Sat, 2 Sep 2023 16:59:12 +0800 Subject: [PATCH] Update egs/multi_zh-hans/ASR/local/compute_fbank_magicdata.py Co-authored-by: Fangjun Kuang --- egs/multi_zh-hans/ASR/local/compute_fbank_magicdata.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/egs/multi_zh-hans/ASR/local/compute_fbank_magicdata.py b/egs/multi_zh-hans/ASR/local/compute_fbank_magicdata.py index 1ddd72377..95f140173 100755 --- a/egs/multi_zh-hans/ASR/local/compute_fbank_magicdata.py +++ b/egs/multi_zh-hans/ASR/local/compute_fbank_magicdata.py @@ -78,11 +78,9 @@ def compute_fbank_thchs30(num_mel_bins: int = 80, speed_perturb: bool = False): recordings=m["recordings"], supervisions=m["supervisions"], ) - if "train" in partition: + if "train" in partition and speed_perturb: cut_set = ( (cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1)) - if speed_perturb - else cut_set ) cut_set = cut_set.compute_and_store_features( extractor=extractor,