Skip to content

fix: use <= instead of < for timestamp tolerance comparison in video_utils#3423

Open
walle250ai wants to merge 1 commit intohuggingface:mainfrom
walle250ai:fix/video-timestamp-tolerance
Open

fix: use <= instead of < for timestamp tolerance comparison in video_utils#3423
walle250ai wants to merge 1 commit intohuggingface:mainfrom
walle250ai:fix/video-timestamp-tolerance

Conversation

@walle250ai
Copy link
Copy Markdown

Fix floating point precision issue in decode_video_frames_torchvision
and decode_video_frames_torchcodec functions.

Changed < to <= in tolerance comparison to be consistent with
feature_utils.py and avoid incorrectly rejecting frames when min_
exactly equals tolerance_s due to floating point precision.

@github-actions github-actions Bot added the dataset Issues regarding data inputs, processing, or datasets label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dataset Issues regarding data inputs, processing, or datasets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant