From 898d8568510165c9f2f9402fd2bc90b78b118e56 Mon Sep 17 00:00:00 2001 From: Assaf Mushinsky Date: Tue, 28 Feb 2023 15:18:45 +0200 Subject: [PATCH] replace deprecated np.float with np.float32 --- lvis/eval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvis/eval.py b/lvis/eval.py index e21a1f3..dccb5ea 100644 --- a/lvis/eval.py +++ b/lvis/eval.py @@ -358,8 +358,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=np.float32) + fp_sum = np.cumsum(fps, axis=1).astype(dtype=np.float32) dt_pointers[cat_idx][area_idx] = { "dt_ids": dt_ids,