Skip to content

Commit 1b85fb5

Browse files
authored
patch for mkdirs on camera path json filepath (#2502)
fix camera path json mkdir in viewer beta
1 parent 81db180 commit 1b85fb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nerfstudio/viewer_beta/render_panel.py

+1
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ def _(event: viser.GuiEvent) -> None:
625625

626626
# now write the json file
627627
json_outfile = datapath / "camera_paths" / f"{render_name_text.value}.json"
628+
json_outfile.parent.mkdir(parents=True, exist_ok=True)
628629
with open(json_outfile.absolute(), "w") as outfile:
629630
json.dump(json_data, outfile)
630631
# now show the command

0 commit comments

Comments
 (0)