Skip to content

Commit 4c0eaa4

Browse files
Aditya Putra Pratamaadityapp
authored andcommitted
update scrfd_person.py numpy int deprecated
1 parent 786c4a8 commit 4c0eaa4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/person_detection/scrfd_person.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
def detect_person(img, detector):
1313
bboxes, kpss = detector.detect(img)
14-
bboxes = np.round(bboxes[:,:4]).astype(np.int)
15-
kpss = np.round(kpss).astype(np.int)
14+
bboxes = np.round(bboxes[:,:4]).astype(np.int32)
15+
kpss = np.round(kpss).astype(np.int32)
1616
kpss[:,:,0] = np.clip(kpss[:,:,0], 0, img.shape[1])
1717
kpss[:,:,1] = np.clip(kpss[:,:,1], 0, img.shape[0])
1818
vbboxes = bboxes.copy()

0 commit comments

Comments
 (0)