deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
21.92k stars 5.26k forks source link

update scrfd_person.py - numpy int (deprecated) #2592

Open adityapp opened 3 weeks ago

adityapp commented 3 weeks ago

updating examples/person_detection/scrfd_person.py to use numpy int32

related issue: https://github.com/deepinsight/insightface/issues/2591

Poehavshi commented 2 weeks ago

There're also the same problem for other files in project

For example alignment/coordinate_reg/image_infer.py:

        lmk = np.round(lmk).astype(np.int)

detection/scrfd/tools/scrfd.py

            x1,y1,x2,y2,score = bbox.astype(np.int)
                    kp = kp.astype(np.int)

So maybe numpy version must be pinned somehow or all places need to be fixed