Fixing Colmap VocabTreeMatching command to support spaces in Filename (#2195)

fix: colmap vocab tree file path error
This commit is contained in:
Jan-Niklas Dihlmann authored and GitHub committed 2023-07-11 07:51:03 -07:00
1 parent 82b3f70f87
commit 904e1352d9
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ def run_colmap(
]
if matching_method == "vocab_tree":
vocab_tree_filename = get_vocab_tree()
feature_matcher_cmd.append(f"--VocabTreeMatching.vocab_tree_path {vocab_tree_filename}")
feature_matcher_cmd.append(f"--VocabTreeMatching.vocab_tree_path '{vocab_tree_filename}'")
feature_matcher_cmd = " ".join(feature_matcher_cmd)
with status(msg="[bold yellow]Running COLMAP feature matcher...", spinner="runner", verbose=verbose):
run_command(feature_matcher_cmd, verbose=verbose)