Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial/notebooks - Minor update to support notebook tests - a typo correction #927

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorials/notebooks/example_keras_imagenet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"execution_count": null,
"outputs": [],
"source": [
"if os.path.isdir('imagenet'):\n",
"if not os.path.isdir('imagenet'):\n",
" !mkdir imagenet\n",
" !wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz\n",
" !mv ILSVRC2012_devkit_t12.tar.gz imagenet/\n",
Expand Down Expand Up @@ -178,7 +178,7 @@
"outputs": [],
"source": [
"import torchvision\n",
"if os.path.isdir('imagenet/val'):\n",
"if not os.path.isdir('imagenet/val'):\n",
" ds = torchvision.datasets.ImageNet(root='./imagenet', split='val')"
],
"metadata": {
Expand Down
4 changes: 2 additions & 2 deletions tutorials/notebooks/example_keras_mobilenet_gptq.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"execution_count": null,
"outputs": [],
"source": [
"if os.path.isdir('imagenet'):\n",
"if not os.path.isdir('imagenet'):\n",
" !mkdir imagenet\n",
" !wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz\n",
" !mv ILSVRC2012_devkit_t12.tar.gz imagenet/\n",
Expand Down Expand Up @@ -110,7 +110,7 @@
"outputs": [],
"source": [
"import torchvision\n",
"if os.path.isdir('imagenet/val'):\n",
"if not os.path.isdir('imagenet/val'):\n",
" torchvision.datasets.ImageNet(root='./imagenet', split='val')"
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"execution_count": null,
"outputs": [],
"source": [
"if os.path.isdir('imagenet'):\n",
"if not os.path.isdir('imagenet'):\n",
" !mkdir imagenet\n",
" !wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz\n",
" !mv ILSVRC2012_devkit_t12.tar.gz imagenet/\n",
Expand Down Expand Up @@ -112,7 +112,7 @@
"outputs": [],
"source": [
"import torchvision\n",
"if os.path.isdir('imagenet/val'):\n",
"if not os.path.isdir('imagenet/val'):\n",
" torchvision.datasets.ImageNet(root='./imagenet', split='val')"
],
"metadata": {
Expand Down
Loading