From 49c6b6943de3f704d5a57e110526a04c1437ea11 Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Wed, 12 Oct 2022 20:55:52 +0800 Subject: [PATCH] Change scale_factor_scale from 0.5 to 0.8 --- egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py b/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py index e74acb7fe..9e8a55407 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless7/scaling.py @@ -376,7 +376,7 @@ class ActivationBalancer(torch.nn.Module): # Instead we make the min_positive constraint stronger, so it first makes the value # sometimes negative, and only when that is satisfied, can deal with the absolute-value # constraint. - scale_factor_scale = 0.5 + scale_factor_scale = 0.8 below_threshold = (self.abs_mean < self.min_abs) above_threshold = (self.abs_mean > self.max_abs) scale_factor[:] = ((below_threshold.to(torch.float32) -