alkzar90 commited on
Commit
13f6c7d
·
1 Parent(s): f768552

fix split in image-segmentation config

Browse files
Files changed (1) hide show
  1. rock-glacier-dataset.py +1 -9
rock-glacier-dataset.py CHANGED
@@ -135,15 +135,7 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
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"]])
139
- return [
140
- datasets.SplitGenerator(
141
- name=datasets.Split.TRAIN,
142
- gen_kwargs={
143
- "files": train_data,
144
- "split": "training",
145
- },
146
- )]
147
 
148
 
149
  def _generate_examples(self, files, split):
 
135
  return splits
136
 
137
  if self.config.name == "image-segmentation":
138
+ return splits
 
 
 
 
 
 
 
 
139
 
140
 
141
  def _generate_examples(self, files, split):