FaceRestoreHelper #40

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

Originally created by @Roenbaeck on GitHub (Aug 6, 2021).

I get the following error with the latest version:

Traceback (most recent call last):
  File "inference_gfpgan_full.py", line 132, in <module>
    face_helper = FaceRestoreHelper(
TypeError: __init__() got an unexpected keyword argument 'device'

Removing the device parameter in the call to FaceRestoreHelper solved my problem. The call in inference_gfpgan_full.py then becomes:

    # initialize face helper
    face_helper = FaceRestoreHelper(
        args.upscale_factor,
        face_size=512,
        crop_ratio=(1, 1),
        det_model='retinaface_resnet50',
        save_ext='png')
Originally created by @Roenbaeck on GitHub (Aug 6, 2021). I get the following error with the latest version: ``` Traceback (most recent call last): File "inference_gfpgan_full.py", line 132, in <module> face_helper = FaceRestoreHelper( TypeError: __init__() got an unexpected keyword argument 'device' ``` Removing the `device` parameter in the call to `FaceRestoreHelper` solved my problem. The call in inference_gfpgan_full.py then becomes: ``` # initialize face helper face_helper = FaceRestoreHelper( args.upscale_factor, face_size=512, crop_ratio=(1, 1), det_model='retinaface_resnet50', save_ext='png') ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#40