Repository navigation
Conversation
This was referenced Nov 22, 2026
sarlinpe
force-pushed
the
refresh/2-pip-no-submodules
branch
from
November 22, 2026 14:05
4159ead to
dbae9b4
Compare
sarlinpe
force-pushed
the
refresh/2-pip-no-submodules
branch
from
November 22, 2026 14:27
dbae9b4 to
4995bbf
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
Make
hlocdirectly pip-installable without--recursiveclones by migrating packaging to PEP 621pyproject.tomland removing all 4third_party/git submodules (PR 2 of 6 in Stack #525, stacked on #517).Changes
.gitmodulesand all 4 git submodules (third_party/{SuperGluePretrainedNetwork,d2net,deep-image-retrieval,r2d2}).SuperGluePretrainedNetwork(retaining its Magic Leap license header) intohloc/matchers/superglue_impl.py— downloading pretrainedindoor/outdoorweights viatorch.hub.load_state_dict_from_urlpinned to commitddcf11f42e7e0732a0c4607648f9448ea8d73590— and keephloc/matchers/superglue.pyas the thin Apache-2.0 wrapper with all existingsupergluedefaults intact.hloc/extractors/superpoint.pytolightglue.SuperPoint(preservingfix_sampling, pixel-center coordinates, and(B, D, N)descriptors).D2-Net,R2D2, andDIR(AP-GeM) extractors.setup.py+requirements.txtwith PEP 621pyproject.toml(setuptools>=77.0.3,requires-python = ">=3.10", drops unusedgdown), and updateDockerfile,README.md, andhloc/utils/viz_3d.py(blackPython 3.10 trailing commas).Superseded Open PRs (to be noted after review)
#334and submodule portions of#489.Verification
flake8/isort/black,SuperPoint(fix_sampling=True/False, blank image,max_keypoints),SuperGlue(outdoor,indoor, and zero-keypoint forward passes viadynamic_load), andSuperPoint + SuperGlueSacre Coeur SfM reconstruction (4/4 images, 269 3D points).