Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Change labels to just multilabels
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -85,8 +85,8 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
85 |
{
|
86 |
"image_file_path": datasets.Value("string"),
|
87 |
"image": datasets.Image(),
|
88 |
-
"labels": datasets.features.ClassLabel(names=_NAMES),
|
89 |
-
"
|
90 |
datasets.features.ClassLabel(num_classes=len(_NAMES),
|
91 |
names=_NAMES)
|
92 |
)
|
@@ -154,7 +154,6 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
154 |
yield i, {
|
155 |
"image_file_path": path,
|
156 |
"image": path,
|
157 |
-
"labels": image_labels
|
158 |
-
"multi-labels": image_labels,
|
159 |
}
|
160 |
|
|
|
85 |
{
|
86 |
"image_file_path": datasets.Value("string"),
|
87 |
"image": datasets.Image(),
|
88 |
+
#"labels": datasets.features.ClassLabel(names=_NAMES),
|
89 |
+
"labels": datasets.features.Sequence(
|
90 |
datasets.features.ClassLabel(num_classes=len(_NAMES),
|
91 |
names=_NAMES)
|
92 |
)
|
|
|
154 |
yield i, {
|
155 |
"image_file_path": path,
|
156 |
"image": path,
|
157 |
+
"labels": image_labels,
|
|
|
158 |
}
|
159 |
|