Update MME.py
Browse files
MME.py
CHANGED
@@ -87,6 +87,7 @@ class MME(datasets.GeneratorBasedBuilder):
|
|
87 |
"instruction": datasets.Value("string"),
|
88 |
"answer": datasets.Value("string"),
|
89 |
"images": datasets.Sequence(datasets.Image()),
|
|
|
90 |
"related_instructions": datasets.Sequence(
|
91 |
datasets.Value(dtype="string")
|
92 |
),
|
@@ -149,6 +150,7 @@ class MME(datasets.GeneratorBasedBuilder):
|
|
149 |
"instruction": row["instruction"],
|
150 |
"answer": row["answer"],
|
151 |
"images": images,
|
|
|
152 |
"related_instructions": row["rel_ins_ids"],
|
153 |
}
|
154 |
index += 1
|
|
|
87 |
"instruction": datasets.Value("string"),
|
88 |
"answer": datasets.Value("string"),
|
89 |
"images": datasets.Sequence(datasets.Image()),
|
90 |
+
"image_ids": datasets.Sequence(datasets.Value("string")),
|
91 |
"related_instructions": datasets.Sequence(
|
92 |
datasets.Value(dtype="string")
|
93 |
),
|
|
|
150 |
"instruction": row["instruction"],
|
151 |
"answer": row["answer"],
|
152 |
"images": images,
|
153 |
+
"image_ids": row["image_ids"],
|
154 |
"related_instructions": row["rel_ins_ids"],
|
155 |
}
|
156 |
index += 1
|