Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use SCRFD detect() in latest insightface? #108

Open
aesanchezgh opened this issue Jan 23, 2023 · 1 comment
Open

How to use SCRFD detect() in latest insightface? #108

aesanchezgh opened this issue Jan 23, 2023 · 1 comment

Comments

@aesanchezgh
Copy link

Hello,

I want to be able to call the detect here:

https://github.com/deepinsight/insightface/blob/6baaa7bcaf1a1624feec75270022e2dafeb6883b/detection/scrfd/tools/scrfd.py

I have this code:

detector = insightface.model_zoo.model_zoo.get_model('insightface/models/antelope/scrfd_10g_bnkps.onnx')
detector.prepare(0,input_size=(640,640))
bboxes,kpss = detector.detect(img,0.5,None,1,'default')

But this no longer works in the latest version.

Thanks!

@SthPhoenix
Copy link
Owner

SthPhoenix commented Jan 23, 2023

Hi! You can use snippet I have provided here as reference

Though I should mention that code you provided refers to original repo, which is quite different from code provided in this repo. I have committed some changes there, but high level abstractions like model_zoo are maintained mostly by deepinsight team, so you'd better check their documentation for changes.

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

No branches or pull requests

2 participants