Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Clean NIH-Chest-X-ray-dataset.py script
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -153,10 +153,7 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
153 |
yield i, {
|
154 |
"image_file_path": path,
|
155 |
"image": path,
|
156 |
-
|
157 |
-
#"labels": [
|
158 |
-
#"labels": "Mass"
|
159 |
-
"labels": label_csv[label_csv['Image Index'] == image_id]['Finding Labels'].values[0].split('|')[0]
|
160 |
-
#"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
|
161 |
}
|
162 |
|
|
|
153 |
yield i, {
|
154 |
"image_file_path": path,
|
155 |
"image": path,
|
156 |
+
"labels": label_csv[label_csv['Image Index'] == image_id]['Finding Labels'].values[0].split('|')[0],
|
157 |
+
#"multi-labels": ["Mass", "Hernia"]
|
|
|
|
|
|
|
158 |
}
|
159 |
|