From f1cf817cf4a674b8517ab6e7c175112fc917c0de Mon Sep 17 00:00:00 2001 From: luomingshuang <739314837@qq.com> Date: Mon, 7 Mar 2022 16:46:26 +0800 Subject: [PATCH] change for asr_datamodule.py --- egs/tedlium3/ASR/transducer_stateless/asr_datamodule.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/egs/tedlium3/ASR/transducer_stateless/asr_datamodule.py b/egs/tedlium3/ASR/transducer_stateless/asr_datamodule.py index 537a9042b..df91eff15 100644 --- a/egs/tedlium3/ASR/transducer_stateless/asr_datamodule.py +++ b/egs/tedlium3/ASR/transducer_stateless/asr_datamodule.py @@ -210,7 +210,7 @@ class TedLiumAsrDataModule: logging.info( f"Time warp factor: {self.args.spec_aug_time_warp_factor}" ) - # Design the value of num_frame_masks according to Lhotse's version. + # Set the value of num_frame_masks according to Lhotse's version. # In different Lhotse's versions, the default of num_frame_masks is # different. num_frame_masks = 10 @@ -219,8 +219,6 @@ class TedLiumAsrDataModule: ).parameters["num_frame_masks"] if num_frame_masks_parameter.default == 1: num_frame_masks = 2 - else: - num_frame_masks = 10 logging.info(f"Num frame mask: {num_frame_masks}") input_transforms.append( SpecAugment(