From 8f72caa91ab3542ad2ea28f03122e2cf093fd5cb Mon Sep 17 00:00:00 2001 From: SpencerWhitehead Date: Thu, 18 May 2023 15:50:44 -0700 Subject: [PATCH] Fix replace deprecated np.float by replacing it with float. --- lvis/eval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvis/eval.py b/lvis/eval.py index 141e95d..d005de4 100644 --- a/lvis/eval.py +++ b/lvis/eval.py @@ -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,