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

Negative values in the predicted annotations #32

Open
vipul43 opened this issue Mar 4, 2021 · 2 comments
Open

Negative values in the predicted annotations #32

vipul43 opened this issue Mar 4, 2021 · 2 comments

Comments

@vipul43
Copy link

vipul43 commented Mar 4, 2021

Screenshot 2021-03-05 at 2 11 20 AM
This is a screenshot of the image that I tried to make predictions in using model.predict_jsons functions, but the resultant annotations of this function have negative bbox values.
There are two faces detected in the image, in the sequence I have added the annotations below, second prediction bbox has negative values. I checked the image, the image is good. Only the predictions of the get_model with max_size=2048, is resulting in such predictions
Screenshot 2021-03-05 at 2 12 53 AM
Screenshot 2021-03-05 at 2 12 39 AM

@vipul43
Copy link
Author

vipul43 commented Mar 4, 2021

Also, what is the max_size parameter to the get_model function...?? Is it the maximum size of the input image?

@woctezuma
Copy link

Also, what is the max_size parameter to the get_model function...?? Is it the maximum size of the input image?

This parameter is used to resize the image. It is the target length for the longest side of the image.

Same as in: https://github.com/xinntao/facexlib/blob/45fee8e7885fc462d2d4c4eafb2650ff384b89c8/facexlib/detection/retinaface.py#L171-L183

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