From d33f67817641b3911f91c2b76698b266290a5e01 Mon Sep 17 00:00:00 2001 From: zr_jin Date: Sun, 8 Dec 2024 16:37:24 +0800 Subject: [PATCH] fixed the formatting issue of PR#1812 (#1828) --- .../ASR/local/compute_fbank_kespeech_dev_test.py | 5 ++--- egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py b/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py index 5e169e8949..2bbe285602 100755 --- a/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py +++ b/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py @@ -111,9 +111,8 @@ def compute_fbank_kespeech_dev_test(args): ) if args.speed_perturb: - cut_set = ( - cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) - ) + cut_set = cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) + logging.info("Computing features") cut_set = cut_set.compute_and_store_features_batch( extractor=extractor, diff --git a/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py b/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py index 6bb8af0d6a..fe7f87337f 100755 --- a/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py +++ b/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py @@ -167,9 +167,7 @@ def compute_fbank_kespeech_splits(args): ) if args.speed_perturb: - cut_set = ( - cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) - ) + cut_set = cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) logging.info("Computing features") cut_set = cut_set.compute_and_store_features_batch(