Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1M<n<10M
ArXiv:
License:
Update ForNet.py
Browse filestest imagenet access in _split_generators
ForNet.py
CHANGED
@@ -1434,6 +1434,9 @@ class ForNet(datasets.GeneratorBasedBuilder):
|
|
1434 |
)
|
1435 |
|
1436 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
|
|
|
|
|
|
1437 |
urls_to_download = _CONST_URLS + _PATCH_URLS
|
1438 |
dl_paths = dl_manager.download(urls_to_download)
|
1439 |
|
|
|
1434 |
)
|
1435 |
|
1436 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
1437 |
+
# test if we have access to ILSVRC/imagenet-1k
|
1438 |
+
_ = datasets.load_dataset("ILSVRC/imagenet-1k", split="train", trust_remote_code=True)
|
1439 |
+
|
1440 |
urls_to_download = _CONST_URLS + _PATCH_URLS
|
1441 |
dl_paths = dl_manager.download(urls_to_download)
|
1442 |
|