From 8e67f8c5245758f59ea8a19cae9c4ac28649886a Mon Sep 17 00:00:00 2001 From: Prashant Kesharwani <47141326+Prashant-Kesharwani@users.noreply.github.com> Date: Fri, 23 Jun 2023 16:23:30 +0530 Subject: [PATCH] Update cpu_nms.pyx numpy.int was deprecated in NumPy 1.20 and was removed in NumPy 1.24. You can change it to numpy.int_, or just int. --- FaceBoxes/utils/nms/cpu_nms.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FaceBoxes/utils/nms/cpu_nms.pyx b/FaceBoxes/utils/nms/cpu_nms.pyx index 5f921bb..69fca71 100755 --- a/FaceBoxes/utils/nms/cpu_nms.pyx +++ b/FaceBoxes/utils/nms/cpu_nms.pyx @@ -26,7 +26,7 @@ def cpu_nms(np.ndarray[np.float32_t, ndim=2] dets, np.float thresh): cdef int ndets = dets.shape[0] cdef np.ndarray[np.int_t, ndim=1] suppressed = \ - np.zeros((ndets), dtype=np.int) + np.zeros((ndets), dtype=np.int_) # nominal indices cdef int _i, _j