minor chg
Browse files
glenda.py
CHANGED
|
@@ -124,7 +124,7 @@ class GLENDA(datasets.GeneratorBasedBuilder):
|
|
| 124 |
raise NotImplementedError()
|
| 125 |
|
| 126 |
return datasets.DatasetInfo(
|
| 127 |
-
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 |
-
|
| 200 |
-
|
| 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")
|