mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-18 21:44:18 +00:00
add for utt_duration
This commit is contained in:
parent
c88bf2a43d
commit
2daf4fec4c
@ -528,7 +528,11 @@ class MetricsTracker(collections.defaultdict):
|
||||
if "utt_" not in k:
|
||||
ans_frames += str(k) + "=" + str(norm_value) + ", "
|
||||
else:
|
||||
ans_utterances += str(k) + "=" + str(norm_value) + ", "
|
||||
ans_utterances += str(k) + "=" + str(norm_value)
|
||||
if k == "utt_duration":
|
||||
ans_utterances += " frames, "
|
||||
else:
|
||||
ans_utterances += ", "
|
||||
frames = "%.2f" % self["frames"]
|
||||
ans_frames += "over " + str(frames) + " frames; "
|
||||
utterances = "%.2f" % self["utterances"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user