Skip to content

Commit

Permalink
Update the path to dataset in notebooks
Browse files Browse the repository at this point in the history
Signed-off-by: Samet Akcay <[email protected]>
  • Loading branch information
samet-akcay committed Jan 3, 2025
1 parent 7d1b28f commit 24a675a
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"if current_directory.name == \"000_getting_started\":\n",
" # On the assumption that, the notebook is located in\n",
" # ~/anomalib/examples/notebooks/000_getting_started/\n",
" root_directory = current_directory.parent.parent\n",
" root_directory = current_directory.parent.parent.parent\n",
"elif current_directory.name == \"anomalib\":\n",
" # This means that the notebook is run from the main anomalib directory.\n",
" root_directory = current_directory\n",
Expand Down Expand Up @@ -648,7 +648,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.11.8"
},
"orig_nbformat": 4
},
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/100_datamodules/101_btech.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"BTech\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"BTech\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/100_datamodules/102_mvtec.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/100_datamodules/103_folder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"hazelnut_toy\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"hazelnut_toy\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/100_datamodules/104_tiling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\" / \"transistor\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\" / \"transistor\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/200_models/201_fastflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/400_openvino/401_nncf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"if current_directory.name == \"400_openvino\":\n",
" # On the assumption that, the notebook is located in\n",
" # ~/anomalib/examples/notebooks/400_openvino/\n",
" root_directory = current_directory.parent.parent\n",
" root_directory = current_directory.parent.parent.parent\n",
"elif current_directory.name == \"anomalib\":\n",
" # This means that the notebook is run from the main anomalib directory.\n",
" root_directory = current_directory\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/600_loggers/601_mlflow_logging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/700_metrics/701a_aupimo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"# NOTE: Provide the path to the dataset root directory.\n",
"# If the datasets is not downloaded, it will be downloaded\n",
"# to this directory.\n",
"dataset_root = Path.cwd().parent.parent / \"datasets\" / \"MVTec\""
"dataset_root = Path.cwd().parent.parent.parent / \"datasets\" / \"MVTec\""
]
},
{
Expand Down

0 comments on commit 24a675a

Please sign in to comment.