# GFPGAN

> GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration

- Type: agent or tool
- Field: Image & Design
- Repository: https://github.com/TencentARC/GFPGAN
- GitHub stars: 37734
- Licence: NOASSERTION
- Language: Python
- Last push: 2024-07-26
- Page: https://imutechz.in/agents/gfpgan

## What it is
GFPGAN is a practical algorithm for real-world blind face restoration that leverages generative facial priors from a pretrained StyleGAN2 model. It restores degraded face images by combining GAN-based priors with degradation removal, and can optionally enhance non-face regions using Real-ESRGAN. The project provides a clean version without custom CUDA extensions and multiple model versions with progressive improvements.

## Features
- Blind face restoration using StyleGAN2 priors
- Multiple model versions (v1.3, v1.4) with improved identity and detail
- Optional background enhancement via Real-ESRGAN integration
- Clean implementation without custom CUDA extensions
- Online demos on Replicate, Hugging Face Gradio, and Google Colab
- Built on BasicSR and facexlib for training and inference

## Best for
- Restoring old or damaged portrait photos
- Enhancing low-quality face images
- Improving face regions in video frames
- General blind face restoration tasks

## Pros
- Practical algorithm designed for real-world use cases
- No custom CUDA extensions required for clean version
- Multiple model versions with documented improvements
- Free online demos for quick testing

## Cons
- Requires Python 3.7 or higher
- Requires PyTorch 1.7 or higher
- NVIDIA GPU with CUDA recommended for performance

Tags: face-restoration, gan, stylegan2, pytorch, image-enhancement, blind-restoration, computer-vision, tencent
