@@ -227,15 +227,14 @@ def process_file(element):
227
227
class CaltechBirds2011 (CaltechBirds2010 ):
228
228
"""Caltech Birds 2011 dataset."""
229
229
230
- VERSION = tfds .core .Version ("0.1.1 " )
230
+ VERSION = tfds .core .Version ("0.2.0 " )
231
231
232
232
@property
233
233
def _caltech_birds_info (self ):
234
- return CaltechBirdsInfo (
234
+ return CaltechBirdsInfo2011 (
235
235
name = self .name ,
236
- images_url = "https://drive.google.com/uc?export=download&id=1hbzc_P1FuxMkcabkgn9ZKinBwW683j45" ,
237
- split_url = None ,
238
- annotations_url = "https://drive.google.com/uc?export=download&id=1EamOKGLoTuZdtcVYbHMWNpkn3iAVj8TP" ,
236
+ images_url = "https://data.caltech.edu/records/65de6-vp158/files/CUB_200_2011.tgz?download=1" ,
237
+ segmentations_url = "https://data.caltech.edu/records/w9d68-gec53/files/segmentations.tgz?download=1" ,
239
238
)
240
239
241
240
def _info (self ):
@@ -257,15 +256,13 @@ def _info(self):
257
256
)
258
257
259
258
def _split_generators (self , dl_manager ):
260
- download_path = dl_manager .download (
261
- [
262
- self ._caltech_birds_info .images_url ,
263
- ]
264
- )
259
+ download_path = dl_manager .download ([
260
+ self ._caltech_birds_info .images_url ,
261
+ ])
265
262
266
263
extracted_path = dl_manager .download_and_extract ([
267
264
self ._caltech_birds_info .images_url ,
268
- self ._caltech_birds_info .annotations_url ,
265
+ self ._caltech_birds_info .segmentations_url ,
269
266
])
270
267
271
268
image_names_path = os .path .join (
@@ -369,3 +366,18 @@ class CaltechBirdsInfo(
369
366
split_url (str): train/test split file URL.
370
367
annotations_url (str): annotation folder URL.
371
368
"""
369
+
370
+
371
+ class CaltechBirdsInfo2011 (
372
+ collections .namedtuple (
373
+ "_CaltechBirdsInfo2011" ,
374
+ ["name" , "images_url" , "segmentations_url" ],
375
+ )
376
+ ):
377
+ """Contains the information necessary to generate a Caltech Birds 2011 dataset.
378
+
379
+ Attributes:
380
+ name (str): name of dataset.
381
+ images_url (str): URL containing images
382
+ segmentations_url (str): URL containing segmentations.
383
+ """
0 commit comments