Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Fix tabs and spaces problems
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -118,11 +118,11 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
|
|
118 |
"image": datasets.Image(),
|
119 |
"labels": datasets.features.Sequence(
|
120 |
datasets.features.ClassLabel(
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
keys = ("image", "labels")
|
127 |
|
128 |
return datasets.DatasetInfo(
|
|
|
118 |
"image": datasets.Image(),
|
119 |
"labels": datasets.features.Sequence(
|
120 |
datasets.features.ClassLabel(
|
121 |
+
num_classes=len(_NAMES),
|
122 |
+
names=_NAMES
|
123 |
+
)
|
124 |
+
)
|
125 |
+
)
|
126 |
keys = ("image", "labels")
|
127 |
|
128 |
return datasets.DatasetInfo(
|