Add the dataset number of classes
Browse files- 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.
|
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 |
),
|