From b8fedd0ba3758d2524ecdfd133e11a6a15207793 Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Sat, 8 May 2021 09:06:51 +0000 Subject: [PATCH] add comment --- deepspeech/exps/deepspeech2/model.py | 2 ++ deepspeech/exps/u2/model.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deepspeech/exps/deepspeech2/model.py b/deepspeech/exps/deepspeech2/model.py index b1ff5c591..c1fe82250 100644 --- a/deepspeech/exps/deepspeech2/model.py +++ b/deepspeech/exps/deepspeech2/model.py @@ -323,6 +323,8 @@ class DeepSpeech2Tester(DeepSpeech2Trainer): config.data.manifest = config.data.test_manifest config.data.keep_transcription_text = True config.data.augmentation_config = "" + # filter test examples, will cause less examples, but no mismatch with training + # and can use large batch size , save training time, so filter test egs now. # config.data.min_input_len = 0.0 # second # config.data.max_input_len = float('inf') # second # config.data.min_output_len = 0.0 # tokens diff --git a/deepspeech/exps/u2/model.py b/deepspeech/exps/u2/model.py index 0bcd1d224..00f4f5ec4 100644 --- a/deepspeech/exps/u2/model.py +++ b/deepspeech/exps/u2/model.py @@ -254,6 +254,8 @@ class U2Trainer(Trainer): config.data.manifest = config.data.test_manifest config.data.keep_transcription_text = True config.data.augmentation_config = "" + # filter test examples, will cause less examples, but no mismatch with training + # and can use large batch size , save training time, so filter test egs now. # config.data.min_input_len = 0.0 # second # config.data.max_input_len = float('inf') # second # config.data.min_output_len = 0.0 # tokens