Skip to content

Commit

Permalink
Merge pull request #36 from FredericOdermatt/fix_category_agnostic
Browse files Browse the repository at this point in the history
(fix) return non empty lists for category agnostic evaluation
  • Loading branch information
rbgirshick authored Feb 21, 2023
2 parents 35f09cd + a1fa536 commit da5f65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvis/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ def _get_gt_dt(self, img_id, cat_id):
gt = [
_ann
for _cat_id in self.params.cat_ids
for _ann in self._gts[img_id, cat_id]
for _ann in self._gts[img_id, _cat_id]
]
dt = [
_ann
for _cat_id in self.params.cat_ids
for _ann in self._dts[img_id, cat_id]
for _ann in self._dts[img_id, _cat_id]
]
return gt, dt

Expand Down

0 comments on commit da5f65d

Please sign in to comment.