alkzar90 commited on
Commit
a2ad8e1
·
1 Parent(s): bddbc3c

Clean NIH-Chest-X-ray-dataset.py script

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +2 -5
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
- #"labels": ["Mass", "Hernia"]
157
- #"labels": [5, 14]
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