Repository navigation
Conversation
sarlinpe
added this pull request to stack #43
October 9, 2026 15:45
sarlinpe
marked this pull request as draft
October 9, 2026 22:42
sarlinpe
force-pushed
the
frame-localization
branch
from
October 10, 2026 00:07
1f5e4dd to
8963eac
Compare
New optional step after mapping (python -m vidmap.localize_frames --run-dir <run>): register every video frame (or a subsampled rate, --fps) against the finished (sub-)reconstructions without further triangulation or bundle adjustment. - Each frame is matched with RoMaV2 to its nearest keyframe (falling back to the other bracketing keyframe when covisibility is low, which handles frames next to cuts); matches are lifted to the keyframe's 3D points and the absolute pose (optionally with a refined focal length) is estimated by robust PnP. - Batched matching with the compiled RoMaV2 graphs on the GPU, PnP in a thread pool, frames read by I/O workers; keyframes keep their bundle-adjusted poses. - Output: frame_poses_<fps>fps*.npz/.txt (cam_from_world, focal, model index, inliers) and a JSON summary with timings; --leave-one-out re-localizes keyframes to validate accuracy. - Viewer: optional dense trajectory of all localized frames (frusta and slider stay on keyframes). - Tests for frame selection helpers.
sarlinpe
force-pushed
the
frame-localization
branch
from
October 10, 2026 01:50
8963eac to
9d798a4
Compare
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Optional step after mapping that registers every video frame, or a subsampled rate, against the finished (sub-)reconstructions, without more triangulation or bundle adjustment.
frame_poses_*.npz/.txt(cam_from_world, focal length, model index, inliers) and a JSON summary with timings.--leave-one-outre-localizes the keyframes to validate accuracy.