Datasets:
Commit ·
bfe11fb
1
Parent(s): f0cb4ba
Fix directory creation
Browse files
odor.py
CHANGED
|
@@ -109,7 +109,7 @@ class ODOR(datasets.GeneratorBasedBuilder):
|
|
| 109 |
imgs_dir = f'{self.cache_dir}/images'
|
| 110 |
_download_file(_META_URL, '.', 'meta.csv', 3)
|
| 111 |
if not os.path.isdir('./annotations'):
|
| 112 |
-
os.
|
| 113 |
_download_file(_TRAIN_JSON_URL, './annotations', 'train.json')
|
| 114 |
_download_file(_TEST_JSON_URL, './annotations', 'test.json')
|
| 115 |
csv_pth = f'./meta.csv'
|
|
|
|
| 109 |
imgs_dir = f'{self.cache_dir}/images'
|
| 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'
|