Skip to content

Commit

Permalink
Merge pull request #5692 from espnet/ftshijt-patch-1
Browse files Browse the repository at this point in the history
Quick fix to calculation of bitrate
  • Loading branch information
sw005320 committed Mar 2, 2024
2 parents f8a6e76 + fdb2492 commit ec9760b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs2/TEMPLATE/asr1/pyscripts/utils/calculate_bitrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
stream,
args.vocab,
)
info = math.log2(len(token[stream]) / ref_len) + vocab[str(stream)]
info = len(token[stream]) / ref_len * vocab[str(stream)]
cum_info += info
bitrates.append(cum_info)
if args.bitrate_details is not None:
Expand Down

0 comments on commit ec9760b

Please sign in to comment.