14
14
# limitations under the License.
15
15
16
16
"""Dataset class for Cars196 Dataset."""
17
-
18
17
import os
19
18
import urllib
20
19
21
20
from tensorflow_datasets .core .utils .lazy_imports_utils import tensorflow as tf
22
21
import tensorflow_datasets .public_api as tfds
23
22
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'
23
+ _URL = 'http://ai.stanford.edu/~jkrause/car196/'
24
+ _EXTRA_URL = 'https://ai.stanford.edu/~jkrause/cars/car_devkit.tgz'
26
25
27
26
_DESCRIPTION = (
28
27
'The Cars dataset contains 16,185 images of 196 classes of cars. The data '
247
246
class Cars196 (tfds .core .GeneratorBasedBuilder ):
248
247
"""Car Images dataset."""
249
248
250
- VERSION = tfds .core .Version ('2.2 .0' )
249
+ VERSION = tfds .core .Version ('2.1 .0' )
251
250
SUPPORTED_VERSIONS = [
252
251
tfds .core .Version ('2.1.0' ),
253
252
]
@@ -256,7 +255,6 @@ class Cars196(tfds.core.GeneratorBasedBuilder):
256
255
'2.0.0' : 'Initial release' ,
257
256
'2.0.1' : 'Website URL update' ,
258
257
'2.1.0' : 'Fixing bug https://github.com/tensorflow/datasets/issues/3927' ,
259
- '2.2.0' : 'Fix broken links' ,
260
258
}
261
259
262
260
def _info (self ):
@@ -273,7 +271,7 @@ def _info(self):
273
271
description = (_DESCRIPTION ),
274
272
features = tfds .features .FeaturesDict (features_dict ),
275
273
supervised_keys = ('image' , 'label' ),
276
- homepage = 'https://web.archive.org/web/20230323151220/https:// ai.stanford.edu/~jkrause/cars/car_dataset.html' ,
274
+ homepage = 'https://ai.stanford.edu/~jkrause/cars/car_dataset.html' ,
277
275
citation = _CITATION ,
278
276
)
279
277
0 commit comments