Skip to content

Commit eb83f58

Browse files
author
Pawan Karke
committed
handled folder creation
1 parent 0640023 commit eb83f58

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

notebook/demo_aligned_pointmap.ipynb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
},
145145
{
146146
"cell_type": "code",
147-
"execution_count": null,
147+
"execution_count": 7,
148148
"metadata": {},
149149
"outputs": [],
150150
"source": [
@@ -233,6 +233,7 @@
233233
"\n",
234234
" # Export mesh\n",
235235
" save_path = f\"{PATH}/meshes/multi/{IMAGE_NAME}/object_{i}.ply\"\n",
236+
" os.makedirs(os.path.dirname(save_path), exist_ok=True)\n",
236237
" mesh.export(save_path)"
237238
]
238239
},
@@ -290,11 +291,7 @@
290291
"outputs": [],
291292
"source": [
292293
"# might take a while to load (black screen)\n",
293-
"import os\n",
294-
"os.environ[\"GRADIO_TEMP_DIR\"] = f\"{PATH}/gradio_tmp\"\n",
295-
"os.makedirs(os.environ[\"GRADIO_TEMP_DIR\"], exist_ok=True)\n",
296-
"\n",
297-
"interactive_visualizer(f\"{PATH}/gaussians/multi/{IMAGE_NAME}.ply\")"
294+
"interactive_visualizer(f\"{PATH}/gaussians/single/{IMAGE_NAME}.ply\")"
298295
]
299296
}
300297
],

0 commit comments

Comments
 (0)