Repository navigation
Conversation
This was referenced Nov 22, 2026
sarlinpe
force-pushed
the
refresh/3-remove-read-write-model
branch
from
November 22, 2026 14:05
029cf2f to
72ce168
Compare
sarlinpe
force-pushed
the
refresh/3-remove-read-write-model
branch
from
November 22, 2026 14:27
72ce168 to
9c9a25a
Compare
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
Delete
hloc/utils/read_write_model.py(588 LOC) and eliminate rawsqlite3queries by offloading all COLMAP model and database I/O topycolmap.Reconstruction,pycolmap.Database,pycolmap.Rotation3d,pycolmap.Rigid3d, andpycolmap.Camera(PR 3 of 7 in Stack #524, stacked on #518).Changes
hloc/utils/read_write_model.py.hloc/colmap_from_nvm.pyandhloc/pipelines/RobotCar/colmap_from_nvm.pyfrom rawsqlite3+read_write_modeltopycolmap.Database.openandpycolmap.Reconstruction(using vectorizedImage(..., keypoints=xys)and normalizedRotation3d).hloc/pairs_from_covisibility.py,hloc/pairs_from_poses.py, andhloc/pairs_from_retrieval.pytopycolmap.Reconstruction.hloc/pipelines/4Seasons/utils.py,hloc/pipelines/7Scenes/{create_gt_sfm.py,utils.py}, andhloc/pipelines/Cambridge/{utils.py,pipeline.py}topycolmap.Reconstruction,Camera.rescale, andRotation3d, removing the redundantextinput-extension flag so COLMAP auto-discovers.bin/.txtmodels viapycolmap.Reconstruction(path).Superseded Open PRs (to be noted after review)
#509(UTF-8 image names inread_write_model.pyare natively handled bypycolmap.Reconstruction).Verification
pycolmap 4.2.1, including auto-discovery of.bin,.txt, and legacy 3-file COLMAP text models viapycolmap.Reconstruction(path).