Datasets:
Commit
·
1eb2200
1
Parent(s):
bfe11fb
Add missing retries argument for annotations download
Browse files
odor.py
CHANGED
@@ -110,8 +110,8 @@ class ODOR(datasets.GeneratorBasedBuilder):
|
|
110 |
_download_file(_META_URL, '.', 'meta.csv', 3)
|
111 |
if not os.path.isdir('./annotations'):
|
112 |
os.makedirs('./annotations')
|
113 |
-
_download_file(_TRAIN_JSON_URL, './annotations', 'train.json')
|
114 |
-
_download_file(_TEST_JSON_URL, './annotations', 'test.json')
|
115 |
csv_pth = f'./meta.csv'
|
116 |
if not os.path.isdir(imgs_dir):
|
117 |
os.makedirs(imgs_dir)
|
|
|
110 |
_download_file(_META_URL, '.', 'meta.csv', 3)
|
111 |
if not os.path.isdir('./annotations'):
|
112 |
os.makedirs('./annotations')
|
113 |
+
_download_file(_TRAIN_JSON_URL, './annotations', 'train.json',3)
|
114 |
+
_download_file(_TEST_JSON_URL, './annotations', 'test.json',3)
|
115 |
csv_pth = f'./meta.csv'
|
116 |
if not os.path.isdir(imgs_dir):
|
117 |
os.makedirs(imgs_dir)
|