TypeError: get_face_landmarks_5() got an unexpected keyword argument 'eye_dist_threshold' in latest update #86

Closed
opened 2026-01-29 21:41:28 +00:00 by claunia · 1 comment
Owner

Originally created by @nowfalsalahudeen on GitHub (Oct 12, 2021).

File "inference_gfpgan.py", line 114, in
main()
File "inference_gfpgan.py", line 77, in main
cropped_faces, restored_faces, restored_img = restorer.enhance(
File "/var/www/myprojectenv/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "/var/www/pikfix.app/app/GFPGAN/gfpgan/utils.py", line 79, in enhance
self.face_helper.get_face_landmarks_5(only_center_face=only_center_face, eye_dist_threshold=5)
TypeError: get_face_landmarks_5() got an unexpected keyword argument 'eye_dist_threshold'

Originally created by @nowfalsalahudeen on GitHub (Oct 12, 2021). File "inference_gfpgan.py", line 114, in <module> main() File "inference_gfpgan.py", line 77, in main cropped_faces, restored_faces, restored_img = restorer.enhance( File "/var/www/myprojectenv/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context return func(*args, **kwargs) File "/var/www/pikfix.app/app/GFPGAN/gfpgan/utils.py", line 79, in enhance self.face_helper.get_face_landmarks_5(only_center_face=only_center_face, eye_dist_threshold=5) TypeError: get_face_landmarks_5() got an unexpected keyword argument 'eye_dist_threshold'
Author
Owner

@xinntao commented on GitHub (Oct 12, 2021):

You need to update the facexlib package to the latest

@xinntao commented on GitHub (Oct 12, 2021): You need to update the `facexlib` package to the latest
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#86