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

Image resolution for inference #50

Closed
Micky-123 opened this issue Nov 14, 2022 · 1 comment
Closed

Image resolution for inference #50

Micky-123 opened this issue Nov 14, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Micky-123
Copy link

Hi,
What is the default image resolution on which the model operates? I tried with 360p and 1080p and it took the same time, so I guess the middleware code is rescaling all the images to a particular resolution before doing inference. Can you please let me know.
Also, is the default model based on resnet-50 or resnet-152?
I would like to experiment with different models. Is it possible to download models based on different resnet backbone and mobilenet backbone?
Thanks!

@serengil
Copy link
Owner

1- it does not have a pre-defined shape

# https://github.com/serengil/retinaface/blob/master/retinaface/model/retinaface_model.py#L55
data = Input(dtype=tf.float32, shape=(None, None, 3), name='data')

2- backbone is resnet-50 as mentioned here and here. no you cannot switch models.

@serengil serengil added the question Further information is requested label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants