Skip to content

Commit 8e8a746

Browse files
committed
refactor: clean up comments in manga VQA result processing functions
1 parent 17ffe1b commit 8e8a746

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lmms_eval/tasks/manga_vqa/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ def mangavqa_test_process_results(doc, results):
4343

4444
questionId = create_deterministic_id(doc)
4545

46-
# Process prediction
4746
pred = pred.strip()
4847

49-
# Get ground truths
5048
ground_truths = [doc["answer"]] if isinstance(doc["answer"], str) else doc["answer"]
5149

5250
# Calculate ANLS
@@ -112,7 +110,6 @@ def lower(text):
112110
return results_dict
113111

114112
def mangavqa_test_aggregate_results(results, args):
115-
# save results as json
116113
path = generate_submission_file("manga_vqa_test_submission.json", args)
117114
with open(path, "w", encoding="utf-8") as f:
118115
json.dump(results, f, ensure_ascii=False, indent=4)

0 commit comments

Comments
 (0)