You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elif self.metric == 'recall':
gt_bboxes = [gt['bboxes'] for gt in gts]
pr_bboxes = [pred[0] for pred in preds]
recalls = eval_recalls(
gt_bboxes,
pr_bboxes,
self.proposal_nums,
self.iou_thrs,
logger=logger,
use_legacy_coordinate=True)
for i, num in enumerate(self.proposal_nums):
for j, iou_thr in enumerate(self.iou_thrs):
eval_results[f'recall@{num}@{iou_thr}'] = recalls[i, j]
if recalls.shape[1] > 1:
ar = recalls.mean(axis=1)
for i, num in enumerate(self.proposal_nums):
eval_results[f'AR@{num}'] = ar[i]
return eval_results
I wonder why pr_bboxes = [pred[0] for pred in preds] only takes the first value in the line of code?
The text was updated successfully, but these errors were encountered:
I wonder why pr_bboxes = [pred[0] for pred in preds] only takes the first value in the line of code?
The text was updated successfully, but these errors were encountered: