Skip to content

Commit 81fc42e

Browse files
authored
Fixes Caltech dataset broken link (#1165)
* Fixes broken link for Caltech Dataset Fixes broken link for Caltech Dataset. Patch clone for #1066. Trying to copy the changes to .ipynb and .md on behalf of leaving team. * Copied the changes to md and ipynb Copied the changes to md and ipynb. also updated the download link for caltech zip file in code. path_to_downloaded_file * copied the changes to .ipynb and .md copied the changes to .ipynb and .md * Updated path_to_download_file in the .py file Updated path_to_download_file in the .py file
1 parent a0ee983 commit 81fc42e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/vision/ipynb/object_detection_using_vision_transformer.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"\n",
3131
"In this Keras example, we implement an object detection ViT\n",
3232
"and we train it on the\n",
33-
"[Caltech 101 dataset](http://www.vision.caltech.edu/datasets/)\n",
33+
"[Caltech 101 dataset](https://data.caltech.edu/records/mzrjq-6wc02)\n",
3434
"to detect an airplane in the given image.\n",
3535
"\n",
3636
"This example requires TensorFlow 2.4 or higher, and\n",
@@ -99,7 +99,7 @@
9999
"\n",
100100
"path_to_downloaded_file = keras.utils.get_file(\n",
101101
" fname=\"caltech_101_zipped\",\n",
102-
" origin=\"https://data.caltech.edu/tindfiles/serve/e41f5188-0b32-41fa-801b-d1e840915e80/\",\n",
102+
" origin=\"https://data.caltech.edu/records/mzrjq-6wc02/files/caltech-101.zip\",\n",
103103
" extract=True,\n",
104104
" archive_format=\"zip\", # downloaded file format\n",
105105
" cache_dir=\"/\", # cache and extract in current directory\n",
@@ -684,4 +684,4 @@
684684
},
685685
"nbformat": 4,
686686
"nbformat_minor": 0
687-
}
687+
}

examples/vision/md/object_detection_using_vision_transformer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import shutil
5454
---
5555
## Prepare dataset
5656

57-
We use the [Caltech 101 Dataset](http://www.vision.caltech.edu/Image_Datasets/Caltech101/).
57+
We use the [Caltech 101 Dataset](https://data.caltech.edu/records/mzrjq-6wc02).
5858

5959

6060
```python
@@ -64,7 +64,7 @@ path_annot = "/Annotations/Airplanes_Side_2/"
6464

6565
path_to_downloaded_file = keras.utils.get_file(
6666
fname="caltech_101_zipped",
67-
origin="https://data.caltech.edu/tindfiles/serve/e41f5188-0b32-41fa-801b-d1e840915e80/",
67+
origin="https://data.caltech.edu/records/mzrjq-6wc02/files/caltech-101.zip",
6868
extract=True,
6969
archive_format="zip", # downloaded file format
7070
cache_dir="/", # cache and extract in current directory

examples/vision/object_detection_using_vision_transformer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"""
5252
## Prepare dataset
5353
54-
We use the [Caltech 101 Dataset](http://www.vision.caltech.edu/Image_Datasets/Caltech101/).
54+
We use the [Caltech 101 Dataset](https://data.caltech.edu/records/mzrjq-6wc02).
5555
"""
5656

5757
# Path to images and annotations
@@ -60,7 +60,7 @@
6060

6161
path_to_downloaded_file = keras.utils.get_file(
6262
fname="caltech_101_zipped",
63-
origin="https://data.caltech.edu/tindfiles/serve/e41f5188-0b32-41fa-801b-d1e840915e80/",
63+
origin="https://data.caltech.edu/records/mzrjq-6wc02/files/caltech-101.zip",
6464
extract=True,
6565
archive_format="zip", # downloaded file format
6666
cache_dir="/", # cache and extract in current directory

0 commit comments

Comments
 (0)