1
0
mirror of https://github.com/TencentARC/GFPGAN.git synced 2025-05-16 15:20:23 -07:00
2021-06-03 19:56:56 +08:00
2021-05-18 15:15:16 +08:00
2021-05-18 21:02:08 +08:00
2021-05-18 15:09:11 +08:00
2021-05-20 10:23:42 +08:00
2021-05-17 23:32:41 +08:00
2021-05-17 23:32:41 +08:00
2021-05-18 16:27:50 +08:00
2021-06-03 19:56:56 +08:00
2021-06-03 19:56:56 +08:00
2021-06-03 19:56:56 +08:00
2021-05-18 15:44:01 +08:00
2021-05-18 14:25:43 +08:00
2021-05-18 15:44:01 +08:00
2021-05-18 15:09:11 +08:00

GFPGAN (CVPR 2021)

Paper | Project Page English | 简体中文

GFPGAN is a blind face restoration algorithm towards real-world face images.

📖 GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior

[Paper] [Project Page] [Demo]
Xintao Wang, Yu Li, Honglun Zhang, Ying Shan
Applied Research Center (ARC), Tencent PCG

Abstract

Blind face restoration usually relies on facial priors, such as facial geometry prior or reference prior, to restore realistic and faithful details. However, very low-quality inputs cannot offer accurate geometric prior while high-quality references are inaccessible, limiting the applicability in real-world scenarios. In this work, we propose GFP-GAN that leverages rich and diverse priors encapsulated in a pretrained face GAN for blind face restoration. This Generative Facial Prior (GFP) is incorporated into the face restoration process via novel channel-split spatial feature transform layers, which allow our method to achieve a good balance of realness and fidelity. Thanks to the powerful generative facial prior and delicate designs, our GFP-GAN could jointly restore facial details and enhance colors with just a single forward pass, while GAN inversion methods require expensive image-specific optimization at inference. Extensive experiments show that our method achieves superior performance to prior art on both synthetic and real-world datasets.

BibTeX

@InProceedings{wang2021gfpgan,
    author = {Xintao Wang and Yu Li and Honglun Zhang and Ying Shan},
    title = {Towards Real-World Blind Face Restoration with Generative Facial Prior},
    booktitle={The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    year = {2021}
}


🔧 Dependencies and Installation

Installation

  1. Clone repo

    git clone https://github.com/xinntao/GFPGAN.git
    
  2. Install dependent packages

    cd GFPGAN
    pip install -r requirements.txt
    

Quick Inference

python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs

📜 License and Acknowledgement

GFPGAN is realeased under Apache License Version 2.0.

📧 Contact

If you have any question, please email xintao.wang@outlook.com or xintaowang@tencent.com.

Description
GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration.
Readme Multiple Licenses 10 MiB
Languages
Python 100%