Skip to content

Commit

Permalink
predict_and_eval: set→list to ensure IDs are sorted like lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Oct 9, 2024
1 parent f571ee8 commit 553573c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calamari_ocr/ocr/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,5 @@ def evaluate(self, *, gt_data: Dict[str, str], pred_data: Dict[str, str]):
)

res = Evaluator.evaluate_single_list(out, True)
res["ids"] = gt_ids
res["ids"] = list(gt_ids)
return res

0 comments on commit 553573c

Please sign in to comment.