You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When a detected face bounding box is non-square, the resizing in
facenet-pytorch/models/utils/detect_face.py
Line 312 in 555aa4b
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.
The text was updated successfully, but these errors were encountered: