mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 10:29:51 +08:00
Fix COLMAP dataparser masks and depthmaps (#2467)
This commit is contained in:
1 parent
53037ba8a7
commit
2864c52618
1 file changed
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user