Skip to content

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

Open
adityapp wants to merge 2 commits intodeepinsight:masterfrom
adityapp:update_scrfd_person
Open

update scrfd_person.py - numpy int (deprecated)#2592
adityapp wants to merge 2 commits intodeepinsight:masterfrom
adityapp:update_scrfd_person

Conversation

@adityapp
Copy link

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

related issue: #2591

@Poehavshi
Copy link

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

@adityapp
Copy link
Author

adityapp commented Sep 30, 2024

updated whole np.int and np.float to np.int32 and np.float32

@adityapp adityapp force-pushed the update_scrfd_person branch from 2f25bce to 60fc122 Compare April 14, 2025 15:47
@adityapp
Copy link
Author

can u help to review this MR? @nttstar @anxiangsir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants