From e85a9359b966bad189924e115a02c3d016b46ecb Mon Sep 17 00:00:00 2001 From: JinZr <60612200+JinZr@users.noreply.github.com> Date: Fri, 21 Jul 2023 09:41:06 +0800 Subject: [PATCH] minor fixes --- egs/wenetspeech/ASR/local/preprocess_wenetspeech.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/egs/wenetspeech/ASR/local/preprocess_wenetspeech.py b/egs/wenetspeech/ASR/local/preprocess_wenetspeech.py index 1bd210f07..dc8a98115 100755 --- a/egs/wenetspeech/ASR/local/preprocess_wenetspeech.py +++ b/egs/wenetspeech/ASR/local/preprocess_wenetspeech.py @@ -112,11 +112,11 @@ def preprocess_wenet_speech(speed_perturb: bool = False): # Run data augmentation that needs to be done in the # time domain. if partition not in ["DEV", "TEST_NET", "TEST_MEETING"]: - logging.info( - f"Speed perturb for {partition} with factors 0.9 and 1.1 " - "(Perturbing may take 8 minutes and saving may take 20 minutes)" - ) if speed_perturb: + logging.info( + f"Speed perturb for {partition} with factors 0.9 and 1.1 " + "(Perturbing may take 8 minutes and saving may take 20 minutes)" + ) cut_set = ( cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) )