Update testdata.py
Browse files- testdata.py +16 -0
testdata.py
CHANGED
@@ -109,6 +109,14 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
109 |
def _split_generators(self, dl_manager):
|
110 |
data_dir = dl_manager.download_and_extract(_URLS)
|
111 |
return [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
datasets.SplitGenerator(
|
113 |
name=datasets.Split.TEST,
|
114 |
gen_kwargs={
|
@@ -117,6 +125,14 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
117 |
"annot_dir": data_dir["annot"],
|
118 |
},
|
119 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
]
|
121 |
|
122 |
def _generate_examples(self, split, data_dir, annot_dir):
|
|
|
109 |
def _split_generators(self, dl_manager):
|
110 |
data_dir = dl_manager.download_and_extract(_URLS)
|
111 |
return [
|
112 |
+
datasets.SplitGenerator(
|
113 |
+
name=datasets.Split.TRAIN,
|
114 |
+
gen_kwargs={
|
115 |
+
"split": "train",
|
116 |
+
"data_dir": data_dir["test"],
|
117 |
+
"annot_dir": data_dir["annot"],
|
118 |
+
},
|
119 |
+
),
|
120 |
datasets.SplitGenerator(
|
121 |
name=datasets.Split.TEST,
|
122 |
gen_kwargs={
|
|
|
125 |
"annot_dir": data_dir["annot"],
|
126 |
},
|
127 |
),
|
128 |
+
datasets.SplitGenerator(
|
129 |
+
name=datasets.Split.VALIDATION,
|
130 |
+
gen_kwargs={
|
131 |
+
"split": "val",
|
132 |
+
"data_dir": data_dir["test"],
|
133 |
+
"annot_dir": data_dir["annot"],
|
134 |
+
},
|
135 |
+
),
|
136 |
]
|
137 |
|
138 |
def _generate_examples(self, split, data_dir, annot_dir):
|