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