diff --git a/nerfstudio/data/dataparsers/colmap_dataparser.py b/nerfstudio/data/dataparsers/colmap_dataparser.py index c68a9cf6a..071a11e1e 100644 --- a/nerfstudio/data/dataparsers/colmap_dataparser.py +++ b/nerfstudio/data/dataparsers/colmap_dataparser.py @@ -147,11 +147,11 @@ class ColmapDataParser(DataParser): frame.update(cameras[im_data.camera_id]) if self.config.masks_path is not None: frame["mask_path"] = ( - (self.config.data / self.config.masks_path / im_data.name).with_suffix(".png").as_posix(), + (self.config.data / self.config.masks_path / im_data.name).with_suffix(".png").as_posix() ) if self.config.depths_path is not None: frame["depth_path"] = ( - (self.config.data / self.config.depths_path / im_data.name).with_suffix(".png").as_posix(), + (self.config.data / self.config.depths_path / im_data.name).with_suffix(".png").as_posix() ) frames.append(frame) if camera_model is not None: