mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 13:54:33 +00:00
TypeError: get_face_landmarks_5() got an unexpected keyword argument 'eye_dist_threshold' in latest update #86
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'
@xinntao commented on GitHub (Oct 12, 2021):
You need to update the
facexlibpackage to the latest