Skip to content

Commit

Permalink
include recall_sweep in serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Dec 20, 2024
1 parent 770c7d6 commit e94c8a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fiftyone/utils/eval/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def __init__(
self.precision = np.asarray(precision)
self.recall = np.asarray(recall)
self.iou_threshs = np.asarray(iou_threshs)
self.recall_sweep = recall_sweep
self.thresholds = (
np.asarray(thresholds) if thresholds is not None else None
)
Expand Down Expand Up @@ -449,6 +450,7 @@ def _from_dict(cls, d, samples, config, eval_key, **kwargs):
precision = d["precision"]
recall = d["recall"]
iou_threshs = d["iou_threshs"]
recall_sweep = d.get("recall_sweep", None)
thresholds = d.get("thresholds", None)
return super()._from_dict(
d,
Expand All @@ -458,6 +460,7 @@ def _from_dict(cls, d, samples, config, eval_key, **kwargs):
precision=precision,
recall=recall,
iou_threshs=iou_threshs,
recall_sweep=recall_sweep,
thresholds=thresholds,
**kwargs,
)
Expand Down

0 comments on commit e94c8a0

Please sign in to comment.