Repository navigation
[V-JEPA2][Bug fix] Resize video frames on the uint8 grid like HF's processor #697
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 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f405461
vjepa2: resize video frames on the uint8 grid like HF's processor
merceod c0fffe5
vjepa2: the AC model takes upstream's DROID transform
merceod ef28d51
Merge origin/main into users/atindra/vjepa2-preprocess
merceod bf369f0
vjepa2: preprocess the decoded bytes with the checkpoint's processor
merceod 82a9b62
vjepa2: test the preprocessing on uint8 frames
merceod 3be6ad4
vjepa2: load the video processor in __init__
merceod 211215a
vjepa2: test that a bad checkpoint is refused at startup
merceod 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
Oops, something went wrong.
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.
A checkpoint without
video_preprocessor_config.jsonhits a bug that main doesn't have:warm_up_modelonly logs whatwarmup_preprocessraises, so the server starts and then fails every video request. Loading the processor in__init__, beside_load_config, refuses such a checkpoint at startup, along with one whose processor crops another size.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.
Done in 3be6ad4, thanks. The processor now loads in
__init__beside_load_config, so a checkpoint withoutvideo_preprocessor_config.json, or with another crop, is refused at startup (tests in 211215a).