mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 13:32:09 -07:00
fixed landmark extraction of face with opened mouth
This commit is contained in:
parent
7c1ea1a617
commit
33606e327b
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class LandmarksExtractor(object):
|
|||
for (left, top, right, bottom) in rects:
|
||||
try:
|
||||
center = np.array( [ (left + right) / 2.0, (top + bottom) / 2.0] )
|
||||
center[1] -= (bottom - top) * 0.12
|
||||
#center[1] -= (bottom - top) * 0.12
|
||||
scale = (right - left + bottom - top) / 195.0
|
||||
|
||||
image = self.crop(input_image, center, scale).astype(np.float32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue