diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.pseudo.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.pseudo.py.swp index 1a64fb126..ec855db79 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.pseudo.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.pseudo.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train.py.swp index 262a1db55..a20df9dac 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/pseudo.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/pseudo.py index ed736331c..f677d3af9 100755 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/pseudo.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/pseudo.py @@ -778,6 +778,10 @@ def main(): #test_other_cuts = librispeech.test_other_cuts(option='male') test_clean_cuts = librispeech.vox_cuts(option=params.spk_id) + def remove_short_and_long_utt(c: Cut): + return 1.0 <= c.duration <= 20.0 + + train_cuts = train_cuts.filter(remove_short_and_long_utt) #test_clean_cuts = librispeech.test_clean_user(option=option) #test_other_cuts = librispeech.test_other_user(option=option) #test_clean_dl = librispeech.train_dataloaders(test_clean_cuts)