chanelcolgate commited on
Commit
d8c67b5
·
1 Parent(s): d6d9c29

modified: braintumor.py

Browse files
Files changed (1) hide show
  1. braintumor.py +4 -3
braintumor.py CHANGED
@@ -24,7 +24,7 @@ for each plane in the T1wCE series from the RSNA-MICCAI competition data.
24
  """
25
 
26
  _URLS = {
27
- "yolo": "https://huggingface.co/datasets/chanelcolgate/tumorsbrain/resolve/main/data/archive.zip"
28
  }
29
 
30
  _CLASSES = ["negative", "positive"]
@@ -176,12 +176,13 @@ class COCOBrainTumor(datasets.GeneratorBasedBuilder):
176
  List[SplitGenerator]: List of SplitGenrator objects representing
177
  the data splits.
178
  """
179
- archive_yolo = dl_manager.download_and_extract(_URLS["yolo"])
 
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)
 
24
  """
25
 
26
  _URLS = {
27
+ "yolo": "https://huggingface.co/datasets/chanelcolgate/brain-tumors-object-detection-datasets/resolve/main/data/archive.zip"
28
  }
29
 
30
  _CLASSES = ["negative", "positive"]
 
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
+
186
  # copy
187
  for from_folder in folders:
188
  from_folder = os.path.join(archive_yolo, from_folder)