-
Notifications
You must be signed in to change notification settings - Fork 31.2k
fix: improve video processing fps assignment logic #42009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c1a2ab3
fix: improve video processing fps and do_sample_frames assignment logic
Xqle d2fbd5a
fix: set return_metadata=True to get metadata
Xqle 9b1fb16
reformat the modular file
Xqle 93c6cb0
fix typo
Xqle d84fa90
revert flag change and fix fps assignment
Xqle 67e33dc
Taking 'num_frames' into considered.
Xqle 1087852
fix
Xqle 3bbf6db
fix: avoid potential reference before assignment error
Xqle f6ca84c
fix
Xqle ea944c4
add 'sample_fps' to 'VideoMetadata'
Xqle af2ae81
fix missing comma
Xqle d1465dd
fix trailing whitespace
Xqle fb42c12
Handle different 'sample_indices_fn'
Xqle c410427
Cleaning white space
Xqle d2090ff
import callable from collections.abc
Xqle 80137c5
calculate sampled_fps using indices
Xqle 0a41c09
correct the order
Xqle 939fbb1
fix
Xqle 7b1f3b9
properly check value in kwargs
Xqle 4908f15
handle sampled_fps as property
Xqle 0aa1f33
remove duplicated definition
Xqle a1142f7
fix
Xqle dad654e
fix
Xqle e40de1b
add safety check
Xqle 09ea379
Merge branch 'main' into fix-qwen25vl-video-fps
zucchini-nlp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we infer it in the same way everywhere so imo we can move it as a property of class VideoMetadata, similar to how
timestampswork