From f58aa9348e147c2625e5d3a864e6b1e00bf5b72d Mon Sep 17 00:00:00 2001 From: Matthew Tancik Date: Fri, 17 Mar 2023 11:03:13 -0700 Subject: [PATCH] Prevent colmap from opening (#1627) --- docs/quickstart/custom_dataset.md | 6 ------ nerfstudio/process_data/colmap_utils.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/quickstart/custom_dataset.md b/docs/quickstart/custom_dataset.md index 4295bf4bc..01706b1ce 100644 --- a/docs/quickstart/custom_dataset.md +++ b/docs/quickstart/custom_dataset.md @@ -33,12 +33,6 @@ To assist running on custom data we have a script that will process a video or f - COLMAP can be finicky. Try your best to capture overlapping, non-blurry images. ::: -:::{admonition} Note -:class: warning - -- If COLMAP opens in a new window, simply close it to resume processing. - ::: - ### Processing Data ```bash diff --git a/nerfstudio/process_data/colmap_utils.py b/nerfstudio/process_data/colmap_utils.py index 859222441..f4b9e9b03 100644 --- a/nerfstudio/process_data/colmap_utils.py +++ b/nerfstudio/process_data/colmap_utils.py @@ -55,7 +55,7 @@ def get_colmap_version(colmap_cmd: str, default_version=3.8) -> float: Returns: The version of COLMAP. """ - output = run_command(colmap_cmd, verbose=False) + output = run_command(f"{colmap_cmd} -h", verbose=False) assert output is not None for line in output.split("\n"): if line.startswith("COLMAP"):