Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
check tabs vs 7
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -127,7 +127,7 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
|
|
127 |
keys = ("image", "labels")
|
128 |
|
129 |
|
130 |
-
if self.config.name == "
|
131 |
features = datasets.Features(
|
132 |
{
|
133 |
"image_id": datasets.Value("string"),
|
@@ -139,7 +139,7 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
|
|
139 |
)
|
140 |
object_dict = {
|
141 |
"image_id": datasets.Value("string"),
|
142 |
-
"area": datasets.
|
143 |
"bbox": datasets.Sequence(datasets.Value("float32"), length=4),
|
144 |
}
|
145 |
features["objects"] = [object_dict]
|
|
|
127 |
keys = ("image", "labels")
|
128 |
|
129 |
|
130 |
+
if self.config.name == "object-detection":
|
131 |
features = datasets.Features(
|
132 |
{
|
133 |
"image_id": datasets.Value("string"),
|
|
|
139 |
)
|
140 |
object_dict = {
|
141 |
"image_id": datasets.Value("string"),
|
142 |
+
"area": datasets.Value("int64"),
|
143 |
"bbox": datasets.Sequence(datasets.Value("float32"), length=4),
|
144 |
}
|
145 |
features["objects"] = [object_dict]
|