TNauen commited on
Commit
13f67b2
·
verified ·
1 Parent(s): 54a6505

Update ForNet.py

Browse files

test imagenet access in _split_generators

Files changed (1) hide show
  1. ForNet.py +3 -0
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