mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
_
This commit is contained in:
parent
14cc9d4e5f
commit
a1ba64be10
1 changed files with 0 additions and 2 deletions
|
@ -302,8 +302,6 @@ def get_transform_mat (image_landmarks, output_size, face_type, scale=1.0):
|
||||||
g_c += vec*vec_len*0.07
|
g_c += vec*vec_len*0.07
|
||||||
|
|
||||||
elif face_type == FaceType.HEAD:
|
elif face_type == FaceType.HEAD:
|
||||||
mat = umeyama( np.concatenate ( [ image_landmarks[17:49] , image_landmarks[54:55] ] ) , landmarks_2D_new, True)[0:2]
|
|
||||||
|
|
||||||
# assuming image_landmarks are 3D_Landmarks extracted for HEAD,
|
# assuming image_landmarks are 3D_Landmarks extracted for HEAD,
|
||||||
# adjust horizontal offset according to estimated yaw
|
# adjust horizontal offset according to estimated yaw
|
||||||
yaw = estimate_averaged_yaw(transform_points (image_landmarks, mat, False))
|
yaw = estimate_averaged_yaw(transform_points (image_landmarks, mat, False))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue