From 12f2e681a4ba411ab499a1ccb9d9fccfc26d96d7 Mon Sep 17 00:00:00 2001 From: Serenitysmk Date: Tue, 28 May 2024 21:08:20 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20when=20--use-sfm-depth=20is=20enabled=20?= =?UTF-8?q?and=20the=20model=20is=20given=20by=20--colm=E2=80=A6=20(#3172)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: when --use-sfm-depth is enabled and the model is given by --colmap-model-path. It searches the wrong reconstruction directory Co-authored-by: J.Y <132313008+jb-ye@users.noreply.github.com> --- .../process_data/colmap_converter_to_nerfstudio_dataset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nerfstudio/process_data/colmap_converter_to_nerfstudio_dataset.py b/nerfstudio/process_data/colmap_converter_to_nerfstudio_dataset.py index b17243329..442973036 100644 --- a/nerfstudio/process_data/colmap_converter_to_nerfstudio_dataset.py +++ b/nerfstudio/process_data/colmap_converter_to_nerfstudio_dataset.py @@ -162,7 +162,9 @@ class ColmapConverterToNerfstudioDataset(BaseConverterToNerfstudioDataset): depth_dir = self.output_dir / "depth" depth_dir.mkdir(parents=True, exist_ok=True) image_id_to_depth_path = colmap_utils.create_sfm_depth( - recon_dir=self.output_dir / self.default_colmap_path(), + recon_dir=self.absolute_colmap_model_path + if self.skip_colmap + else self.output_dir / self.default_colmap_path(), output_dir=depth_dir, include_depth_debug=self.include_depth_debug, input_images_dir=self.image_dir,