Fix COLMAP dataparser masks and depthmaps (#2467)

This commit is contained in:
Jonáš Kulhánek authored and GitHub committed 2023-09-25 08:37:08 -07:00
1 parent 53037ba8a7
commit 2864c52618
1 file changed
+2 -2
@@ -147,11 +147,11 @@ class ColmapDataParser(DataParser):
frame.update(cameras[im_data.camera_id]) frame.update(cameras[im_data.camera_id])
if self.config.masks_path is not None: if self.config.masks_path is not None:
frame["mask_path"] = ( 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: if self.config.depths_path is not None:
frame["depth_path"] = ( 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) frames.append(frame)
if camera_model is not None: if camera_model is not None: