Skip to content

Commit ba95394

Browse files
Manuel Lopez Antequerafacebook-github-bot
authored andcommitted
Ensure directory exists before writing point cloud
Reviewed By: mwerlberger Differential Revision: D28572540 fbshipit-source-id: d5e432e900442a214b7e1c3cb66de73a8c1bf962
1 parent e7353a2 commit ba95394

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

opensfm/dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ def save_point_cloud(
12081208
detections: np.ndarray,
12091209
filename: str = "merged.ply",
12101210
) -> None:
1211+
self.io_handler.mkdir_p(self._depthmap_path())
12111212
with self.io_handler.open(self.point_cloud_file(filename), "w") as fp:
12121213
io.point_cloud_to_ply(points, normals, colors, labels, detections, fp)
12131214

0 commit comments

Comments
 (0)