Update RDD_2020.py
Browse files- RDD_2020.py +4 -3
RDD_2020.py
CHANGED
@@ -76,9 +76,9 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
|
|
76 |
|
77 |
def _split_generators(self, dl_manager):
|
78 |
"""This method downloads/extracts the data and defines the splits."""
|
79 |
-
|
80 |
|
81 |
-
|
82 |
datasets.SplitGenerator(
|
83 |
name=datasets.Split.TRAIN,
|
84 |
gen_kwargs={
|
@@ -103,8 +103,9 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
|
|
103 |
"split": "test2",
|
104 |
},
|
105 |
),
|
106 |
-
|
107 |
|
|
|
108 |
|
109 |
def _generate_examples(self, images_dir, annotations_dir, split):
|
110 |
"""Yields examples as (key, example) tuples."""
|
|
|
76 |
|
77 |
def _split_generators(self, dl_manager):
|
78 |
"""This method downloads/extracts the data and defines the splits."""
|
79 |
+
data_dir = dl_manager.download_and_extract(_URLS["dataset"])
|
80 |
|
81 |
+
return [
|
82 |
datasets.SplitGenerator(
|
83 |
name=datasets.Split.TRAIN,
|
84 |
gen_kwargs={
|
|
|
103 |
"split": "test2",
|
104 |
},
|
105 |
),
|
106 |
+
]
|
107 |
|
108 |
+
|
109 |
|
110 |
def _generate_examples(self, images_dir, annotations_dir, split):
|
111 |
"""Yields examples as (key, example) tuples."""
|