Skip to content
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

More robust key frame index setting #489

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

NicolasHug
Copy link
Member

During the can, we currently map a FrameInfo from the allFrames vec to the keyFrames vec by checking for pts equality. That's not 100% robust as there may exist some 0-duration frames at the same pts of the keyFrame.
We're also not 100% sure that this isn't reliant on metadata somehow.

This PR makes the process more robust by not relying on metadata and by doing the mapping ourselves, adding a new isKeyFrame field to the struct.

@NicolasHug NicolasHug requested a review from scotts January 31, 2025 15:35
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 31, 2025
@NicolasHug NicolasHug merged commit 93fff37 into pytorch:main Jan 31, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants