From 1b85fb528b087f6ef9939addc4693f6a6e507219 Mon Sep 17 00:00:00 2001 From: Justin Kerr Date: Tue, 10 Oct 2023 13:09:09 -0700 Subject: [PATCH] patch for mkdirs on camera path json filepath (#2502) fix camera path json mkdir in viewer beta --- nerfstudio/viewer_beta/render_panel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nerfstudio/viewer_beta/render_panel.py b/nerfstudio/viewer_beta/render_panel.py index 7342b0f38..690027f8d 100644 --- a/nerfstudio/viewer_beta/render_panel.py +++ b/nerfstudio/viewer_beta/render_panel.py @@ -625,6 +625,7 @@ def populate_render_tab( # now write the json file json_outfile = datapath / "camera_paths" / f"{render_name_text.value}.json" + json_outfile.parent.mkdir(parents=True, exist_ok=True) with open(json_outfile.absolute(), "w") as outfile: json.dump(json_data, outfile) # now show the command