Skip to content

Commit d68c0e0

Browse files
author
The TensorFlow Datasets Authors
committed
Merge pull request #11073 from SanjaySG:master
PiperOrigin-RevId: 777745914
2 parents 7840d08 + 7956928 commit d68c0e0

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

tensorflow_datasets/image_classification/cars196.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
# limitations under the License.
1515

1616
"""Dataset class for Cars196 Dataset."""
17+
1718
import os
1819
import urllib
1920

2021
from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow as tf
2122
import tensorflow_datasets.public_api as tfds
2223

23-
_URL = 'http://ai.stanford.edu/~jkrause/car196/'
24-
_EXTRA_URL = 'https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz'
24+
_URL = 'https://web.archive.org/web/20221212053154/http://ai.stanford.edu/~jkrause/car196/'
25+
_EXTRA_URL = 'https://web.archive.org/web/20230323151230/https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz'
2526

2627
_DESCRIPTION = (
2728
'The Cars dataset contains 16,185 images of 196 classes of cars. The data '
@@ -246,7 +247,7 @@
246247
class Cars196(tfds.core.GeneratorBasedBuilder):
247248
"""Car Images dataset."""
248249

249-
VERSION = tfds.core.Version('2.1.0')
250+
VERSION = tfds.core.Version('2.2.0')
250251
SUPPORTED_VERSIONS = [
251252
tfds.core.Version('2.1.0'),
252253
]
@@ -255,6 +256,7 @@ class Cars196(tfds.core.GeneratorBasedBuilder):
255256
'2.0.0': 'Initial release',
256257
'2.0.1': 'Website URL update',
257258
'2.1.0': 'Fixing bug https://github.com/tensorflow/datasets/issues/3927',
259+
'2.2.0': 'Fix broken links',
258260
}
259261

260262
def _info(self):
@@ -271,7 +273,7 @@ def _info(self):
271273
description=(_DESCRIPTION),
272274
features=tfds.features.FeaturesDict(features_dict),
273275
supervised_keys=('image', 'label'),
274-
homepage='https://ai.stanford.edu/~jkrause/cars/car_dataset.html',
276+
homepage='https://web.archive.org/web/20230323151220/https://ai.stanford.edu/~jkrause/cars/car_dataset.html',
275277
citation=_CITATION,
276278
)
277279

tensorflow_datasets/stable_versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ caltech101/3.0.2
267267
caltech_birds2010/0.1.1
268268
caltech_birds2011/0.1.1
269269
cardiotox/1.0.0
270-
cars196/2.1.0
270+
cars196/2.2.0
271271
cassava/0.1.0
272272
cats_vs_dogs/4.0.1
273273
celeb_a/2.1.0

tensorflow_datasets/testing/metadata/supported.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ caltech101/3.0.2
257257
caltech_birds2010/0.1.1
258258
caltech_birds2011/0.1.1
259259
cardiotox/1.0.0
260-
cars196/2.1.0
260+
cars196/2.2.0
261261
cassava/0.1.0
262262
cats_vs_dogs/4.0.1
263263
celeb_a/2.1.0

tensorflow_datasets/url_checksums/cars196.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ http://ai.stanford.edu/~jkrause/car196/cars_test.tgz 977350468 bffea656d6f425cba
22
http://ai.stanford.edu/~jkrause/car196/cars_test_annos_withlabels.mat 185758 790f75be8ea34eeded134cc559332baf23e30e91367e9ddca97d26ed9b895f05 cars_test_annos_withlabels.mat
33
http://ai.stanford.edu/~jkrause/car196/cars_train.tgz 979269282 512b227b30e2f0a8aab9e09485786ab4479582073a144998da74d64b801fd288 cars_train.tgz
44
https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz 330960 b97deb463af7d58b6bfaa18b2a4de9829f0f79e8ce663dfa9261bf7810e9accd car_devkit.tgz
5+
https://web.archive.org/web/20221212053154/http:/ai.stanford.edu/~jkrause/car196/cars_test.tgz 977350468 bffea656d6f425cba3c91c6d83336e4c5f86c6cffd8975b0f375d3a10da8e243 cars_test.tgz
6+
https://web.archive.org/web/20221212053154/http:/ai.stanford.edu/~jkrause/car196/cars_test_annos_withlabels.mat 185758 790f75be8ea34eeded134cc559332baf23e30e91367e9ddca97d26ed9b895f05 cars_test_annos_withlabels.mat
7+
https://web.archive.org/web/20221212053154/http:/ai.stanford.edu/~jkrause/car196/cars_train.tgz 979269282 512b227b30e2f0a8aab9e09485786ab4479582073a144998da74d64b801fd288 cars_train.tgz
8+
https://web.archive.org/web/20230323151230/https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz 330960 b97deb463af7d58b6bfaa18b2a4de9829f0f79e8ce663dfa9261bf7810e9accd car_devkit.tgz

0 commit comments

Comments
 (0)