alkzar90 commited on
Commit
a9c73c3
1 Parent(s): ae0c959

Fix labels names in dataset features

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +1 -1
NIH-Chest-X-ray-dataset.py CHANGED
@@ -63,7 +63,7 @@ class XChest(datasets.GeneratorBasedBuilder):
63
  {
64
  "image_file_path": datasets.Value("string"),
65
  "image": datasets.Image(),
66
- "labels": datasets.features.ClassLabel(names=_NAMES),
67
  }
68
  ),
69
  supervised_keys=("image", "labels"),
 
63
  {
64
  "image_file_path": datasets.Value("string"),
65
  "image": datasets.Image(),
66
+ "labels": datasets.features.ClassLabel(names=list(LABEL2IDX.keys())),
67
  }
68
  ),
69
  supervised_keys=("image", "labels"),