Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Comment multi-label
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -84,10 +84,10 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
84 |
"image_file_path": datasets.Value("string"),
|
85 |
"image": datasets.Image(),
|
86 |
"labels": datasets.features.ClassLabel(names=_NAMES),
|
87 |
-
"multi-labels": datasets.features.Sequence(
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
}
|
92 |
),
|
93 |
supervised_keys=("image", "labels"),
|
@@ -150,6 +150,6 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
150 |
#"labels": ["Mass", "Hernia"]
|
151 |
#"labels": [5, 14]
|
152 |
"labels": "Mass"
|
153 |
-
"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
|
154 |
}
|
155 |
|
|
|
84 |
"image_file_path": datasets.Value("string"),
|
85 |
"image": datasets.Image(),
|
86 |
"labels": datasets.features.ClassLabel(names=_NAMES),
|
87 |
+
#"multi-labels": datasets.features.Sequence(
|
88 |
+
# datasets.features.ClassLabel(num_classes=len(_NAMES),
|
89 |
+
# names=_NAMES)
|
90 |
+
# )
|
91 |
}
|
92 |
),
|
93 |
supervised_keys=("image", "labels"),
|
|
|
150 |
#"labels": ["Mass", "Hernia"]
|
151 |
#"labels": [5, 14]
|
152 |
"labels": "Mass"
|
153 |
+
#"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
|
154 |
}
|
155 |
|