Skip to content

Update the cars196 dataset #11073

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 4 additions & 3 deletions tensorflow_datasets/image_classification/cars196.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow as tf
import tensorflow_datasets.public_api as tfds

_URL = 'http://ai.stanford.edu/~jkrause/car196/'
_EXTRA_URL = 'https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz'
_URL = 'https://web.archive.org/web/20221212053154/http://ai.stanford.edu/~jkrause/car196/'
_EXTRA_URL = 'https://web.archive.org/web/20230323151230/https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz'

_DESCRIPTION = (
'The Cars dataset contains 16,185 images of 196 classes of cars. The data '
Expand Down Expand Up @@ -255,6 +255,7 @@ class Cars196(tfds.core.GeneratorBasedBuilder):
'2.0.0': 'Initial release',
'2.0.1': 'Website URL update',
'2.1.0': 'Fixing bug https://github.com/tensorflow/datasets/issues/3927',
'2.2.0': 'Fix broken links',
}

def _info(self):
Expand All @@ -271,7 +272,7 @@ def _info(self):
description=(_DESCRIPTION),
features=tfds.features.FeaturesDict(features_dict),
supervised_keys=('image', 'label'),
homepage='https://ai.stanford.edu/~jkrause/cars/car_dataset.html',
homepage='https://web.archive.org/web/20230323151220/https://ai.stanford.edu/~jkrause/cars/car_dataset.html',
citation=_CITATION,
)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow_datasets/stable_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ caltech101/3.0.2
caltech_birds2010/0.1.1
caltech_birds2011/0.1.1
cardiotox/1.0.0
cars196/2.1.0
cars196/2.2.0
cassava/0.1.0
cats_vs_dogs/4.0.1
celeb_a/2.1.0
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_datasets/testing/metadata/supported.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ caltech101/3.0.2
caltech_birds2010/0.1.1
caltech_birds2011/0.1.1
cardiotox/1.0.0
cars196/2.1.0
cars196/2.2.0
cassava/0.1.0
cats_vs_dogs/4.0.1
celeb_a/2.1.0
Expand Down
4 changes: 4 additions & 0 deletions tensorflow_datasets/url_checksums/cars196.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ http://ai.stanford.edu/~jkrause/car196/cars_test.tgz 977350468 bffea656d6f425cba
http://ai.stanford.edu/~jkrause/car196/cars_test_annos_withlabels.mat 185758 790f75be8ea34eeded134cc559332baf23e30e91367e9ddca97d26ed9b895f05 cars_test_annos_withlabels.mat
http://ai.stanford.edu/~jkrause/car196/cars_train.tgz 979269282 512b227b30e2f0a8aab9e09485786ab4479582073a144998da74d64b801fd288 cars_train.tgz
https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz 330960 b97deb463af7d58b6bfaa18b2a4de9829f0f79e8ce663dfa9261bf7810e9accd car_devkit.tgz
https://web.archive.org/web/20221212053154/http:/ai.stanford.edu/~jkrause/car196/cars_test.tgz 977350468 bffea656d6f425cba3c91c6d83336e4c5f86c6cffd8975b0f375d3a10da8e243 cars_test.tgz
https://web.archive.org/web/20221212053154/http:/ai.stanford.edu/~jkrause/car196/cars_test_annos_withlabels.mat 185758 790f75be8ea34eeded134cc559332baf23e30e91367e9ddca97d26ed9b895f05 cars_test_annos_withlabels.mat
https://web.archive.org/web/20221212053154/http:/ai.stanford.edu/~jkrause/car196/cars_train.tgz 979269282 512b227b30e2f0a8aab9e09485786ab4479582073a144998da74d64b801fd288 cars_train.tgz
https://web.archive.org/web/20230323151230/https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz 330960 b97deb463af7d58b6bfaa18b2a4de9829f0f79e8ce663dfa9261bf7810e9accd car_devkit.tgz