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

Please list the Glint360K's face alignment settings #1286

Closed
apache2046 opened this issue Oct 23, 2020 · 1 comment
Closed

Please list the Glint360K's face alignment settings #1286

apache2046 opened this issue Oct 23, 2020 · 1 comment

Comments

@apache2046
Copy link

can we download the original unaligned face images ? thanks !

@anxiangsir
Copy link
Contributor

anxiangsir commented Oct 23, 2020

Alignment settings is:

import cv2
from skimage import transform as trans
dst = np.array([
   [30.2946, 51.6963],
   [65.5318, 51.5014],
   [48.0252, 71.7366],
   [33.5493, 92.3655],
   [62.7299, 92.2041]], dtype=np.float32 )
dst[:,0] += 8.0
src = landmark.astype(np.float32)
tform = trans.SimilarityTransform()
tform.estimate(src, dst)
M = tform.params[0:2, :]
img = cv2.warpAffine(img, M, (112,112), borderValue=0.0)

This is same as all datasets in insightface.

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