alkzar90 commited on
Commit
5dc1cfc
1 Parent(s): 527c8a6

Comment multi-label

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +5 -5
NIH-Chest-X-ray-dataset.py CHANGED
@@ -84,10 +84,10 @@ class XChest(datasets.GeneratorBasedBuilder):
84
  "image_file_path": datasets.Value("string"),
85
  "image": datasets.Image(),
86
  "labels": datasets.features.ClassLabel(names=_NAMES),
87
- "multi-labels": datasets.features.Sequence(
88
- datasets.features.ClassLabel(num_classes=len(_NAMES),
89
- names=_NAMES)
90
- )
91
  }
92
  ),
93
  supervised_keys=("image", "labels"),
@@ -150,6 +150,6 @@ class XChest(datasets.GeneratorBasedBuilder):
150
  #"labels": ["Mass", "Hernia"]
151
  #"labels": [5, 14]
152
  "labels": "Mass"
153
- "multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
154
  }
155
 
 
84
  "image_file_path": datasets.Value("string"),
85
  "image": datasets.Image(),
86
  "labels": datasets.features.ClassLabel(names=_NAMES),
87
+ #"multi-labels": datasets.features.Sequence(
88
+ # datasets.features.ClassLabel(num_classes=len(_NAMES),
89
+ # names=_NAMES)
90
+ # )
91
  }
92
  ),
93
  supervised_keys=("image", "labels"),
 
150
  #"labels": ["Mass", "Hernia"]
151
  #"labels": [5, 14]
152
  "labels": "Mass"
153
+ #"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
154
  }
155