Skip to content

Commit

Permalink
Merge pull request #39 from SpencerWhitehead/lvis_challenge_2021
Browse files Browse the repository at this point in the history
Fix deprecated np.float by replacing it with float.
  • Loading branch information
rbgirshick authored May 18, 2023
2 parents 5ab8be1 + 8f72caa commit 04e89fd
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 @@ -437,8 +437,8 @@ def accumulate(self):
tps = np.logical_and(dt_m, np.logical_not(dt_ig))
fps = np.logical_and(np.logical_not(dt_m), np.logical_not(dt_ig))

tp_sum = np.cumsum(tps, axis=1).astype(dtype=np.float)
fp_sum = np.cumsum(fps, axis=1).astype(dtype=np.float)
tp_sum = np.cumsum(tps, axis=1).astype(dtype=float)
fp_sum = np.cumsum(fps, axis=1).astype(dtype=float)

dt_pointers[cat_idx][area_idx] = {
"dt_ids": dt_ids,
Expand Down

0 comments on commit 04e89fd

Please sign in to comment.