Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
fix tabs vs 5
Browse files- NIH-Chest-X-ray-dataset.py +10 -9
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -126,7 +126,7 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
|
|
126 |
)
|
127 |
keys = ("image", "labels")
|
128 |
|
129 |
-
|
130 |
features = datasets.Features(
|
131 |
{
|
132 |
"image_id": datasets.Value("string"),
|
@@ -135,14 +135,15 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
|
|
135 |
"width": datasets.Value("int32"),
|
136 |
"height": datasets.Value("int32"),
|
137 |
}
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
146 |
|
147 |
return datasets.DatasetInfo(
|
148 |
description=_DESCRIPTION,
|
|
|
126 |
)
|
127 |
keys = ("image", "labels")
|
128 |
|
129 |
+
if sef.config.name == "object-detection":
|
130 |
features = datasets.Features(
|
131 |
{
|
132 |
"image_id": datasets.Value("string"),
|
|
|
135 |
"width": datasets.Value("int32"),
|
136 |
"height": datasets.Value("int32"),
|
137 |
}
|
138 |
+
)
|
139 |
+
object_dict = {
|
140 |
+
"image_id": datasets.Value("string"),
|
141 |
+
"area": datasets.Value("int64"),
|
142 |
+
"bbox": datasets.Sequence(datasets.Value("floaat32"), length=4),
|
143 |
+
}
|
144 |
+
features["objects"] = [object_dict]
|
145 |
+
keys = ("image", "objects")
|
146 |
+
|
147 |
|
148 |
return datasets.DatasetInfo(
|
149 |
description=_DESCRIPTION,
|