Skip to content

Commit

Permalink
Fix parse_pred_ans argument in
Browse files Browse the repository at this point in the history
MagnifierBenchDataset
  • Loading branch information
Luodian committed Nov 7, 2023
1 parent 6dd93de commit 70a95bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/benchmarks/datasets/magnifierbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _evaluate(self, model):

model_response = model.generate(question, data["images"][0])

pred_ans = self.parse_pred_ans(model_response)
pred_ans = self.parse_pred_ans(model_response, question)

freeform_question = (question.split("?")[0] + "?").replace(self.prompt, "").strip()
options = question.split("?")[1]
Expand Down

0 comments on commit 70a95bb

Please sign in to comment.