Skip to content

Commit

Permalink
boundingbox.py: Changed np.int to np.int32 to make compatible with ne…
Browse files Browse the repository at this point in the history
…w 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>
  • Loading branch information
YishGene authored and ssheorey committed Dec 29, 2023
1 parent 5ebe6e5 commit fcf97c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml3d/vis/boundingbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fcf97c0

Please sign in to comment.