Update hloc and add new matcher types (#2658)

* Update hloc and add new matcher types

* Update dockerfile comment to better reflect what the command is doing

---------

Co-authored-by: mfischer <michael.fischer@spleenlab.ai>
This commit is contained in:
Alexandru Kisandmfischer authored and GitHub committed 2023-12-08 08:58:51 -08:00
1 parent 4c966b9bd4
commit 1d9cc7dd8a
4 files changed
+33 -4

No files matched your search

@@ -66,6 +66,8 @@ class ColmapConverterToNerfstudioDataset(BaseConverterToNerfstudioDataset):
"NN-ratio",
"NN-mutual",
"adalam",
"disk+lightglue",
"superpoint+lightglue",
] = "any"
"""Matching algorithm."""
num_downscales: int = 3
+8 -1
View File
@@ -60,7 +60,14 @@ def run_hloc(
"sift", "superpoint_aachen", "superpoint_max", "superpoint_inloc", "r2d2", "d2net-ss", "sosnet", "disk"
] = "superpoint_aachen",
matcher_type: Literal[
"superglue", "superglue-fast", "NN-superpoint", "NN-ratio", "NN-mutual", "adalam"
"superglue",
"superglue-fast",
"NN-superpoint",
"NN-ratio",
"NN-mutual",
"adalam",
"disk+lightglue",
"superpoint+lightglue",
] = "superglue",
num_matched: int = 50,
refine_pixsfm: bool = False,
+21 -2
View File
@@ -477,7 +477,16 @@ def find_tool_feature_matcher_combination(
"disk",
],
matcher_type: Literal[
"any", "NN", "superglue", "superglue-fast", "NN-superpoint", "NN-ratio", "NN-mutual", "adalam"
"any",
"NN",
"superglue",
"superglue-fast",
"NN-superpoint",
"NN-ratio",
"NN-mutual",
"adalam",
"disk+lightglue",
"superpoint+lightglue",
],
) -> Union[
Tuple[None, None, None],
@@ -493,7 +502,17 @@ def find_tool_feature_matcher_combination(
"sosnet",
"disk",
],
Literal["NN", "superglue", "superglue-fast", "NN-superpoint", "NN-ratio", "NN-mutual", "adalam"],
Literal[
"NN",
"superglue",
"superglue-fast",
"NN-superpoint",
"NN-ratio",
"NN-mutual",
"adalam",
"disk+lightglue",
"superpoint+lightglue",
],
],
]:
"""Find a valid combination of sfm tool, feature type, and matcher type.