Skip to content

Commit fcf97c0

Browse files
YishGenessheorey
andcommitted
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 <sameer.sheorey@intel.com>
1 parent 5ebe6e5 commit fcf97c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ml3d/vis/boundingbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def plot_rect3d_on_img(img,
245245
if color is None:
246246
color = np.ones((line_indices.shape[0], line_indices.shape[1], 3))
247247
for i in range(num_rects):
248-
corners = rect_corners[i].astype(np.int)
248+
corners = rect_corners[i].astype(np.int32)
249249
# ignore boxes outside a certain threshold
250250
interesting_corners_scale = 3.0
251251
if min(corners[:, 0]

0 commit comments

Comments
 (0)