Skip to content

Commit

Permalink
Fix result presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
likaixin2000 authored Feb 5, 2025
1 parent 8b9ac10 commit aa2cce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def compute_metrics(results, problems, k_list=[1, 5, 10]):
for image_tag in tasks_by_image_category.keys():
task_ids = tasks_by_image_category[image_tag]
result_dict = compute_metrics_single({task_id: results[task_id] for task_id in task_ids}, k_list=k_list)
all_result_dict[image_tag] = result_dict
categories_result_dict[image_tag] = result_dict

final_result_dict = {
'all': all_result_dict,
Expand Down

0 comments on commit aa2cce1

Please sign in to comment.