1414# limitations under the License.
1515
1616"""Dataset class for Cars196 Dataset."""
17+
1718import os
1819import urllib
1920
2021from tensorflow_datasets .core .utils .lazy_imports_utils import tensorflow as tf
2122import 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 '
246247class 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
0 commit comments