Update new_dataset_script.py
Browse files- new_dataset_script.py +3 -3
new_dataset_script.py
CHANGED
@@ -138,7 +138,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
138 |
|
139 |
return [
|
140 |
datasets.SplitGenerator(
|
141 |
-
name=Split.TRAIN,
|
142 |
gen_kwargs={
|
143 |
"filepaths": train_files,
|
144 |
"species_info": species_info,
|
@@ -147,7 +147,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
147 |
},
|
148 |
),
|
149 |
datasets.SplitGenerator(
|
150 |
-
name=Split.VALIDATION,
|
151 |
gen_kwargs={
|
152 |
"filepaths": val_files,
|
153 |
"species_info": species_info,
|
@@ -156,7 +156,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
156 |
},
|
157 |
),
|
158 |
datasets.SplitGenerator(
|
159 |
-
name=Split.TEST,
|
160 |
gen_kwargs={
|
161 |
"filepaths": test_files,
|
162 |
"species_info": species_info,
|
|
|
138 |
|
139 |
return [
|
140 |
datasets.SplitGenerator(
|
141 |
+
name=datasets.Split.TRAIN,
|
142 |
gen_kwargs={
|
143 |
"filepaths": train_files,
|
144 |
"species_info": species_info,
|
|
|
147 |
},
|
148 |
),
|
149 |
datasets.SplitGenerator(
|
150 |
+
name=datasets.Split.VALIDATION,
|
151 |
gen_kwargs={
|
152 |
"filepaths": val_files,
|
153 |
"species_info": species_info,
|
|
|
156 |
},
|
157 |
),
|
158 |
datasets.SplitGenerator(
|
159 |
+
name=datasets.Split.TEST,
|
160 |
gen_kwargs={
|
161 |
"filepaths": test_files,
|
162 |
"species_info": species_info,
|