Skip to content

Commit

Permalink
fix: start_time type of int instead of float (NVIDIA#8593)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Loppinet <stephaneloppinet@gmail.com>
Co-authored-by: Elena Rastorgueva <80532067+erastorgueva-nv@users.noreply.github.com>
  • Loading branch information
Stephane-Lpt and erastorgueva-nv authored Mar 22, 2024
1 parent c0abfd3 commit 284e0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/nemo_forced_aligner/utils/make_ctm_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def make_ctm(
# make the predicted duration of the token/word/segment longer, growing it outwards equal
# amounts from the predicted center of the token/word/segment
token_mid_point = (start_time + end_time) / 2
start_time = max(token_mid_point - ctm_file_config.minimum_timestamp_duration / 2, 0)
start_time = max(token_mid_point - ctm_file_config.minimum_timestamp_duration / 2, 0.0)
end_time = min(
token_mid_point + ctm_file_config.minimum_timestamp_duration / 2, audio_file_duration
)
Expand Down

0 comments on commit 284e0c3

Please sign in to comment.