From fcf97c07bf7a113a47d0fcf63760b245c2a2784e Mon Sep 17 00:00:00 2001 From: Yishai Elyada Date: Sun, 24 Dec 2023 01:33:03 +0100 Subject: [PATCH] boundingbox.py: Changed np.int to np.int32 to make compatible with new versions of numpy (#624) numpy.int is deprecated (>=1.20) or removed (>=1.24). This is compatible back to >=1.13 and possibly earlier (earliest version for which online documentation exists) --------- Co-authored-by: Sameer Sheorey --- ml3d/vis/boundingbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml3d/vis/boundingbox.py b/ml3d/vis/boundingbox.py index 55b388884..e05611d49 100644 --- a/ml3d/vis/boundingbox.py +++ b/ml3d/vis/boundingbox.py @@ -245,7 +245,7 @@ def plot_rect3d_on_img(img, if color is None: color = np.ones((line_indices.shape[0], line_indices.shape[1], 3)) for i in range(num_rects): - corners = rect_corners[i].astype(np.int) + corners = rect_corners[i].astype(np.int32) # ignore boxes outside a certain threshold interesting_corners_scale = 3.0 if min(corners[:, 0]