From 273ba198d3721ad6840c19f797738a337c469e61 Mon Sep 17 00:00:00 2001 From: wangna11BD <79366697+wangna11BD@users.noreply.github.com> Date: Mon, 22 Mar 2021 16:04:54 +0800 Subject: [PATCH] fix issue233 (#239) --- ppgan/faceutils/dlibutils/face_align.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ppgan/faceutils/dlibutils/face_align.py b/ppgan/faceutils/dlibutils/face_align.py index a9d0dd1..f18c5d9 100644 --- a/ppgan/faceutils/dlibutils/face_align.py +++ b/ppgan/faceutils/dlibutils/face_align.py @@ -43,10 +43,10 @@ def get_max_face(faces): # find max face areas = [] for face in faces: - left = face.rect.left() - top = face.rect.top() - right = face.rect.right() - bottom = face.rect.bottom() + left = face.left() + top = face.top() + right = face.right() + bottom = face.bottom() areas.append((bottom - top) * (right - left)) max_face_index = np.argmax(areas) return faces[max_face_index] -- GitLab