Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Fix tab probem
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -115,13 +115,13 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
|
|
115 |
def _info(self):
|
116 |
if self.config.name == "image-cllassification":
|
117 |
features = datasets.Features(
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
)
|
126 |
keys = ("image", "labels")
|
127 |
|
|
|
115 |
def _info(self):
|
116 |
if self.config.name == "image-cllassification":
|
117 |
features = datasets.Features(
|
118 |
+
{
|
119 |
+
"image": datasets.Image(),
|
120 |
+
"labels": datasets.features.Sequence(
|
121 |
+
datasets.features.ClassLabel(num_classes=len(_NAMES),
|
122 |
+
names=_NAMES)
|
123 |
+
)
|
124 |
+
}
|
125 |
)
|
126 |
keys = ("image", "labels")
|
127 |
|