Skip to content

Commit

Permalink
fix issue233 (PaddlePaddle#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangna11BD authored Mar 22, 2021
1 parent feb3262 commit 273ba19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ppgan/faceutils/dlibutils/face_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 273ba19

Please sign in to comment.