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

dynamic input shape yunet model face detection #204

Closed
erfansafaie opened this issue Aug 20, 2023 · 1 comment
Closed

dynamic input shape yunet model face detection #204

erfansafaie opened this issue Aug 20, 2023 · 1 comment
Assignees
Labels
question It is not an issue but rather a user question

Comments

@erfansafaie
Copy link

Is yunet face detection model supports dynamic input shape by using OpenCV??

@fengyuentau
Copy link
Member

Hello @erfansafaie , yes, with our code and model you can use various kinds of input scales for face detection. Note that you need to set input scale each time you do a inference on an image with a different input scale from the previous one:

def setInputSize(self, input_size):
self._model.setInputSize(tuple(input_size))

# Inference
model.setInputSize([w, h])
results = model.infer(image)

@fengyuentau fengyuentau self-assigned this Aug 21, 2023
@fengyuentau fengyuentau added the question It is not an issue but rather a user question label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question It is not an issue but rather a user question
Projects
None yet
Development

No branches or pull requests

2 participants