Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
License:
reformat split list
Browse files- rock-glacier-dataset.py +4 -3
rock-glacier-dataset.py
CHANGED
@@ -107,9 +107,7 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
107 |
|
108 |
def _split_generators(self, dl_manager):
|
109 |
data_files = dl_manager.download_and_extract(_URLS)
|
110 |
-
|
111 |
-
if self.config.name == "image-classification":
|
112 |
-
return [
|
113 |
datasets.SplitGenerator(
|
114 |
name=datasets.Split.TRAIN,
|
115 |
gen_kwargs={
|
@@ -132,6 +130,9 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
132 |
},
|
133 |
),
|
134 |
]
|
|
|
|
|
|
|
135 |
|
136 |
if self.config.name == "image-segmentation":
|
137 |
train_data = dl_manager.iter_files([data_files["train"]]), dl_manager.iter_files([data_files["train_mask"]])
|
|
|
107 |
|
108 |
def _split_generators(self, dl_manager):
|
109 |
data_files = dl_manager.download_and_extract(_URLS)
|
110 |
+
splits = [
|
|
|
|
|
111 |
datasets.SplitGenerator(
|
112 |
name=datasets.Split.TRAIN,
|
113 |
gen_kwargs={
|
|
|
130 |
},
|
131 |
),
|
132 |
]
|
133 |
+
|
134 |
+
if self.config.name == "image-classification":
|
135 |
+
return splits
|
136 |
|
137 |
if self.config.name == "image-segmentation":
|
138 |
train_data = dl_manager.iter_files([data_files["train"]]), dl_manager.iter_files([data_files["train_mask"]])
|