# tencentarc/gfpgan

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/tencentarc-gfpgan).**

37,469 stars · 6,278 forks · Python · NOASSERTION

## Links

- GitHub: https://github.com/TencentARC/GFPGAN
- awesome-repositories: https://awesome-repositories.com/repository/tencentarc-gfpgan.md

## Topics

`deep-learning` `face-restoration` `gan` `gfpgan` `image-restoration` `pytorch` `super-resolution`

## Description

GFPGAN is a generative face restoration model and Python-based image processing tool designed to restore low-resolution facial images. It utilizes generative adversarial networks to recover fine details and increase the clarity of degraded portraits.

The system employs a generative facial prior to map degraded images to a high-quality manifold, enabling blind-face restoration without requiring knowledge of the specific degradation process. It utilizes a multi-stage workflow that includes face detection, alignment, and region-specific masking to separate facial areas from the background.

Beyond facial detail recovery, the toolkit includes capabilities for background region enhancement to improve the overall visual quality of a photograph. It also supports the training of specialized restoration models using custom datasets and pre-trained weights.

## Tags

### Graphics & Multimedia

- [Portrait Restoration](https://awesome-repositories.com/f/graphics-multimedia/portrait-restoration.md) — Uses generative models to fix blurry or distorted faces in low-quality photography.
- [Detail Enhancement](https://awesome-repositories.com/f/graphics-multimedia/media-processing-analysis/face-portrait-manipulation/face-manipulation/detail-enhancement.md) — Recovers fine details and sharpens low-resolution facial images using pre-trained generative priors. ([source](https://github.com/tencentarc/gfpgan#readme))
- [Face Restoration](https://awesome-repositories.com/f/graphics-multimedia/media-processing-analysis/media-manipulation/image-processing/face-restoration.md) — Recovers fine details and sharpens low-resolution facial images to produce natural portraits.
- [Image Processing Pipelines](https://awesome-repositories.com/f/graphics-multimedia/image-processing-pipelines.md) — Employs a multi-stage workflow including face detection, alignment, restoration, and background blending.

### Artificial Intelligence & ML

- [Blind Restoration Models](https://awesome-repositories.com/f/artificial-intelligence-ml/blind-restoration-models.md) — Implements blind-face restoration to recover details without needing to know the specific image degradation process.
- [Image Restoration Models](https://awesome-repositories.com/f/artificial-intelligence-ml/image-restoration-models.md) — Uses Generative Adversarial Networks (GANs) to produce sharp results from pixelated facial images.
- [Image Super Resolution Models](https://awesome-repositories.com/f/artificial-intelligence-ml/image-super-resolution-models.md) — Increases the resolution and clarity of degraded photos by reconstructing missing pixel details.
- [Generative Priors](https://awesome-repositories.com/f/artificial-intelligence-ml/probabilistic-priors/generative-priors.md) — Leverages a pre-trained GAN as a learned facial prior to map degraded images to a high-quality manifold.
- [Region Masking](https://awesome-repositories.com/f/artificial-intelligence-ml/facial-landmark-detection/region-masking.md) — Isolates facial regions from the background using masks to apply targeted restoration and blending.
- [Generative Upscalers](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-upscalers.md) — Utilizes generative techniques to reconstruct high-resolution details for both faces and backgrounds.
- [Image Restoration Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/image-restoration-models/image-restoration-model-training.md) — Supports training specialized restoration networks on custom datasets to improve facial recovery.

### Part of an Awesome List

- [Advanced Image Manipulation](https://awesome-repositories.com/f/awesome-lists/ai/advanced-image-manipulation.md) — Practical algorithms for real-world face restoration.
- [Image and Video Restoration](https://awesome-repositories.com/f/awesome-lists/ai/image-and-video-restoration.md) — Practical tool for real-world face restoration.
