Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
almazan committed Aug 29, 2019
1 parent 50cbe41 commit acd5495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dirtorch/datasets/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def eval_query_AP(self, query_idx, scores):
gt, scores = gt[keep], scores[keep]
gt_sorted = gt[np.argsort(scores)[::-1]]
positive_rank = np.where(gt_sorted == 1)[0]
ap = compute_average_precision(positive_rank)
return compute_average_precision(positive_rank)
else:
d = {}
for mode in ('easy', 'medium', 'hard'):
Expand Down

0 comments on commit acd5495

Please sign in to comment.