|
54 | 54 | # Original site, it is down very often.
|
55 | 55 | # _VOC_DATA_URL = "http://host.robots.ox.ac.uk/pascal/VOC/voc{year}/"
|
56 | 56 | # Data mirror:
|
57 |
| -_VOC_DATA_URL = "http://pjreddie.com/media/files/" |
| 57 | +_VOC_DATA_URL = "https://data.brainchip.com/dataset-mirror/voc/" |
58 | 58 | _VOC_LABELS = (
|
59 | 59 | "aeroplane",
|
60 | 60 | "bicycle",
|
@@ -134,10 +134,11 @@ def __init__(
|
134 | 134 | super(VocConfig, self).__init__(
|
135 | 135 | name=year,
|
136 | 136 | # Version history:
|
| 137 | + # 5.0.0: Added new download links and updated checksums. |
137 | 138 | # 4.0.0: Added BuildConfig and 2012 version support, deprecate Voc2007.
|
138 | 139 | # 3.0.0: S3 with new hashing function (different shuffle).
|
139 | 140 | # 2.0.0: S3 (new shuffling, sharding and slicing mechanism).
|
140 |
| - version=tfds.core.Version("4.0.0"), |
| 141 | + version=tfds.core.Version("5.0.0"), |
141 | 142 | **kwargs,
|
142 | 143 | )
|
143 | 144 |
|
@@ -196,12 +197,10 @@ def _info(self):
|
196 | 197 | )
|
197 | 198 |
|
198 | 199 | def _split_generators(self, dl_manager):
|
199 |
| - paths = dl_manager.download_and_extract( |
200 |
| - { |
201 |
| - k: os.path.join(_VOC_DATA_URL, v) |
202 |
| - for k, v in self.builder_config.filenames.items() |
203 |
| - } |
204 |
| - ) |
| 200 | + paths = dl_manager.download_and_extract({ |
| 201 | + k: os.path.join(_VOC_DATA_URL, v) |
| 202 | + for k, v in self.builder_config.filenames.items() |
| 203 | + }) |
205 | 204 | return [
|
206 | 205 | tfds.core.SplitGenerator(
|
207 | 206 | name=tfds.Split.TEST,
|
|
0 commit comments