mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 21:12:07 -07:00
fix umeyama for landmark alignment of side faces
Before https://i.imgur.com/pEoZ6Mu.mp4 after https://i.imgur.com/wO2Guo7.mp4
This commit is contained in:
parent
59d6fada23
commit
0448a461f5
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def umeyama(src, dst, estimate_scale):
|
||||||
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
|
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
|
||||||
d[dim - 1] = s
|
d[dim - 1] = s
|
||||||
else:
|
else:
|
||||||
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V.T))
|
T[:dim, :dim] = np.dot(U, np.dot(np.diag(d), V))
|
||||||
|
|
||||||
if estimate_scale:
|
if estimate_scale:
|
||||||
# Eq. (41) and (42).
|
# Eq. (41) and (42).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue