diff --git a/icefall/.utils.py.swp b/icefall/.utils.py.swp index 177ac2bac..e0e5b179c 100644 Binary files a/icefall/.utils.py.swp and b/icefall/.utils.py.swp differ diff --git a/icefall/utils.py b/icefall/utils.py index 99e51a2a9..b2ed0a07e 100644 --- a/icefall/utils.py +++ b/icefall/utils.py @@ -876,9 +876,13 @@ class MetricsTracker(collections.defaultdict): for k, v in self.items(): if k == "frames" or k == "utterances": continue + #norm_value = ( + # float(v) / num_frames if "utt_" not in k else float(v) / num_utterances + #) norm_value = ( - float(v) / num_frames if "utt_" not in k else float(v) / num_utterances + float(v) / num_utterances ) + ans.append((k, norm_value)) return ans