alkzar90 commited on
Commit
b741c32
1 Parent(s): 7f0f8b7

Change labels to just multilabels

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +3 -4
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
- "multi-labels": datasets.features.Sequence(
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[0],
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