chanelcolgate
commited on
Commit
•
293bec0
1
Parent(s):
d6d9c29
Update braintumor.py
Browse files- braintumor.py +2 -2
braintumor.py
CHANGED
@@ -176,12 +176,12 @@ class COCOBrainTumor(datasets.GeneratorBasedBuilder):
|
|
176 |
List[SplitGenerator]: List of SplitGenrator objects representing
|
177 |
the data splits.
|
178 |
"""
|
179 |
-
archive_yolo = dl_manager.
|
|
|
180 |
data_folder = "braintumors"
|
181 |
data_folder_yolo = data_folder + "_yolo"
|
182 |
data_folder_coco = data_folder + "_coco"
|
183 |
folders = os.listdir(str(archive_yolo))
|
184 |
-
print(folders)
|
185 |
# copy
|
186 |
for from_folder in folders:
|
187 |
from_folder = os.path.join(archive_yolo, from_folder)
|
|
|
176 |
List[SplitGenerator]: List of SplitGenrator objects representing
|
177 |
the data splits.
|
178 |
"""
|
179 |
+
archive_yolo = dl_manager.download(_URLS["yolo"])
|
180 |
+
archive_yolo = dl_manager.extract(archive_yolo)
|
181 |
data_folder = "braintumors"
|
182 |
data_folder_yolo = data_folder + "_yolo"
|
183 |
data_folder_coco = data_folder + "_coco"
|
184 |
folders = os.listdir(str(archive_yolo))
|
|
|
185 |
# copy
|
186 |
for from_folder in folders:
|
187 |
from_folder = os.path.join(archive_yolo, from_folder)
|