MFreidank commited on
Commit
974c47b
·
1 Parent(s): 0bcee31

minor chg

Browse files
Files changed (1) hide show
  1. glenda.py +5 -4
glenda.py CHANGED
@@ -124,7 +124,7 @@ class GLENDA(datasets.GeneratorBasedBuilder):
124
  raise NotImplementedError()
125
 
126
  return datasets.DatasetInfo(
127
- description=DESCRIPTION,
128
  features=datasets.Features(features),
129
  homepage=HOMEPAGE,
130
  license=LICENSE,
@@ -196,9 +196,9 @@ class GLENDA(datasets.GeneratorBasedBuilder):
196
  no_pathology_data_path.glob("*/*.jpg"), start=max_id + 1
197
  ):
198
  image_filepaths.append(image_filepath)
199
- image_filename_with_parent_folder = image_filepath.relative_to(
200
- no_pathology_data_path
201
- )
202
 
203
  metadata = {
204
  "id": image_id,
@@ -252,3 +252,4 @@ class GLENDA(datasets.GeneratorBasedBuilder):
252
  "labels": label,
253
  "metadata": image_metadata,
254
  }
 
 
124
  raise NotImplementedError()
125
 
126
  return datasets.DatasetInfo(
127
+ description=__doc__,
128
  features=datasets.Features(features),
129
  homepage=HOMEPAGE,
130
  license=LICENSE,
 
196
  no_pathology_data_path.glob("*/*.jpg"), start=max_id + 1
197
  ):
198
  image_filepaths.append(image_filepath)
199
+ *_, parent_folder, image_filename = image_filepath.parts
200
+
201
+ image_filename_with_parent_folder = f"{parent_folder}/{image_filename}"
202
 
203
  metadata = {
204
  "id": image_id,
 
252
  "labels": label,
253
  "metadata": image_metadata,
254
  }
255
+ datasets.load_dataset(__file__, name="binary_classification")