Skip to content

Commit d055e7d

Browse files
committed
Update from comments
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent def3625 commit d055e7d

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

generation/3d_ddpm/3d_ddpm_tutorial.ipynb

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
{
5050
"cell_type": "code",
51-
"execution_count": 1,
51+
"execution_count": null,
5252
"id": "cdea37d5",
5353
"metadata": {},
5454
"outputs": [
@@ -93,6 +93,7 @@
9393
"import os\n",
9494
"import tempfile\n",
9595
"import time\n",
96+
"import shutil\n",
9697
"\n",
9798
"import matplotlib.pyplot as plt\n",
9899
"import numpy as np\n",
@@ -633,7 +634,6 @@
633634
"name": "stderr",
634635
"output_type": "stream",
635636
"text": [
636-
"You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
637637
"100%|██████████| 1000/1000 [00:31<00:00, 31.56it/s]\n"
638638
]
639639
}
@@ -741,6 +741,27 @@
741741
"plt.axis(\"off\")\n",
742742
"plt.show()"
743743
]
744+
},
745+
{
746+
"cell_type": "markdown",
747+
"id": "b39a47bb",
748+
"metadata": {},
749+
"source": [
750+
"### Cleanup data directory\n",
751+
"\n",
752+
"Remove directory if a temporary was used."
753+
]
754+
},
755+
{
756+
"cell_type": "code",
757+
"execution_count": null,
758+
"id": "957a45ff",
759+
"metadata": {},
760+
"outputs": [],
761+
"source": [
762+
"if directory is None:\n",
763+
" shutil.rmtree(root_dir)"
764+
]
744765
}
745766
],
746767
"metadata": {

0 commit comments

Comments
 (0)