andreped commited on
Commit
496ab6f
·
1 Parent(s): d18bad6

Update IBDColEpi.py

Browse files
Files changed (1) hide show
  1. IBDColEpi.py +2 -2
IBDColEpi.py CHANGED
@@ -95,7 +95,7 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
95
  if self.config.name.startswith("part"): # This is the name of the configuration selected in BUILDER_CONFIGS above
96
  features = datasets.Features(
97
  {
98
- "wsi": datasets.Value("string"),
99
  # These are the features of your dataset like images, labels ...
100
  }
101
  )
@@ -174,5 +174,5 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
174
  for image_id in os.listdir(self.DATA_DIR):
175
  curr_path = os.path.join(self.DATA_DIR, image_id)
176
  yield image_id, {
177
- "filename": os.path.join(curr_path, image_id),
178
  }
 
95
  if self.config.name.startswith("part"): # This is the name of the configuration selected in BUILDER_CONFIGS above
96
  features = datasets.Features(
97
  {
98
+ "image": datasets.Value("string"),
99
  # These are the features of your dataset like images, labels ...
100
  }
101
  )
 
174
  for image_id in os.listdir(self.DATA_DIR):
175
  curr_path = os.path.join(self.DATA_DIR, image_id)
176
  yield image_id, {
177
+ "image": os.path.join(curr_path, image_id),
178
  }