Skip to content

Commit

Permalink
Tutorial/notebooks - Minor update to support notebook tests (#927)
Browse files Browse the repository at this point in the history
Tutorial/notebooks - Minor update to support notebook tests - a typo correction
  • Loading branch information
Idan-BenAmi authored Jan 22, 2024
1 parent 388ec86 commit f46add1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit f46add1

Please sign in to comment.