TencentARC/GFPGAN

Face restoration for old or low-quality photos

What

GAN-based model that restores blurry or damaged faces in photos, optionally upscaling the background with Real-ESRGAN.

How to use

Clone, install deps (basicsr, facexlib, requirements.txt, realesrgan), download a model, then:

bash
python inference_gfpgan.py -i inputs/whole_imgs -o results -v 1.3 -s 2

Reach for it when

You need to clean up faces in old photos or low-res AI renders.