GFPGAN
Face restoration model by Tencent ARC for enhancing old or low-quality face photos.
About
GFPGAN tackles blind face restoration: recovering realistic facial detail from old, damaged, or low-resolution photos. Developed by Tencent ARC, it uses a generative facial prior from a pretrained StyleGAN2 to reconstruct faces in a single pass, and it can pair with Real-ESRGAN to enhance the non-face background at the same time. The repository ships a Python package, inference scripts, training code, and several pretrained weights: V1.3 gives the most natural results on very low or high quality inputs, V1.2 produces sharper output with a beautification effect, and the original V1 model from the paper includes colorization. It runs on Python 3.7 and newer with PyTorch, works on CPU or CUDA GPUs, and a clean version avoids custom CUDA extensions entirely. Released under the Apache 2.0 license, GFPGAN is a standard component in photo restoration and image enhancement pipelines, with hosted demos on Hugging Face Spaces and Replicate.
Should you use GFPGAN?
Pick it when
You need a permissively licensed face restoration step in a product or batch pipeline, such as restoring scanned portraits in bulk, with optional Real-ESRGAN background upscaling and a clean install that also runs on CPU.
Look elsewhere when
Faces are extremely degraded and your use is non-commercial: CodeFormer targets that case with a fidelity weight. V1.2 adds a beautification effect that can drift from the real face, so compare versions on your material.
Alternatives to GFPGAN
- CodeFormer
Built for severely degraded faces with an adjustable fidelity weight, but its S-Lab license is non-commercial where GFPGAN is Apache-2.0.
- SUPIR
Restores entire photos with SDXL-generated detail and text guidance, but needs about 12GB VRAM and bars commercial use without permission.
- Real-ESRGAN
Upscales backgrounds and whole images and can call GFPGAN for faces in the same pass, so start there when faces are not the main problem.
- IOPaint (Lama Cleaner)
Bundles GFPGAN with inpainting and upscaling in a local browser UI, easier for one-off photo fixes than running scripts.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- AI Image/Video Editing
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Easy (2/5)
- License
- Apache-2.0
- Minimum VRAM
- 4 GB
- Added
- Apr 3, 2026