echarlaix HF staff commited on
Commit
68f1179
1 Parent(s): 90e803b

Add the dataset number of classes

Browse files
Files changed (1) hide show
  1. vqa-lxmert.py +1 -1
vqa-lxmert.py CHANGED
@@ -81,7 +81,7 @@ class VqaV2Lxmert(datasets.GeneratorBasedBuilder):
81
  "answer_type": datasets.Value("string"),
82
  "label": datasets.Sequence(
83
  {
84
- "ids": datasets.Value("int32"),
85
  "weights": datasets.Value("float32"),
86
  }
87
  ),
 
81
  "answer_type": datasets.Value("string"),
82
  "label": datasets.Sequence(
83
  {
84
+ "ids": datasets.ClassLabel(num_classes=3129),
85
  "weights": datasets.Value("float32"),
86
  }
87
  ),