TypeError: get_face_landmarks_5() got an unexpected keyword argument 'eye_dist_threshold' #209

Open
opened 2026-01-29 21:45:42 +00:00 by claunia · 0 comments
Owner

Originally created by @wsysl1989 on GitHub (Jul 14, 2022).

Traceback (most recent call last):
File "M:\GFPGAN\inference_gfpgan.py", line 155, in
main()
File "M:\GFPGAN\inference_gfpgan.py", line 119, in main
cropped_faces, restored_faces, restored_img = restorer.enhance(
File "D:\anaconda3\envs\gfpgan\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "M:\GFPGAN\gfpgan\utils.py", line 106, 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 @wsysl1989 on GitHub (Jul 14, 2022). Traceback (most recent call last): File "M:\GFPGAN\inference_gfpgan.py", line 155, in <module> main() File "M:\GFPGAN\inference_gfpgan.py", line 119, in main cropped_faces, restored_faces, restored_img = restorer.enhance( File "D:\anaconda3\envs\gfpgan\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context return func(*args, **kwargs) File "M:\GFPGAN\gfpgan\utils.py", line 106, 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'
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#209