Skip to content

Commit

Permalink
Add else case.
Browse files Browse the repository at this point in the history
Co-authored-by: manushreegangwar <[email protected]>
  • Loading branch information
wickeat and manushreegangwar authored Feb 6, 2025
1 parent 37067d5 commit 0fd94fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiftyone/utils/eval/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,8 @@ def _compute_pr_curves(samples, config, classes=None, progress=None):
thresholds[idx][c_idx] = t
if rec.size != 0:
recall_sweep[idx][c_idx] = rec[-1]
else:
recall_sweep[idx][c_idx] = 0

return precision, recall, thresholds, iou_threshs, classes, recall_sweep

Expand Down

0 comments on commit 0fd94fd

Please sign in to comment.