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

resize of non-square bounding boxes #205

Closed
gschramm opened this issue Feb 17, 2023 · 1 comment
Closed

resize of non-square bounding boxes #205

gschramm opened this issue Feb 17, 2023 · 1 comment

Comments

@gschramm
Copy link

When a detected face bounding box is non-square, the resizing in


leads to distortions.
E.g. if the bouding box has width 300:200 (aspect ratio 1.5), and gets resized to 160:160, the face image gets
squeezed in the vertical direction

As a fix, I would suggest to first pad the non-square bounding box to a square size before resizing.

@timesler
Copy link
Owner

This is deliberate as the pretrained model was trained using images prepared this way

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