Installation
We now provide a clean version of GFPGAN, which does not require customized CUDA extensions. See here for this easier installation.
If you want want to use the original model in our paper, please follow the instructions below.
Clone repo
Install dependent packages
As StyleGAN2 uses customized PyTorch C++ extensions, you need to compile them during installation or load them just-in-time(JIT). You can refer to BasicSR-INSTALL.md for more details.
Option 1: Load extensions just-in-time(JIT) (For those just want to do simple inferences, may have less issues)
Option 2: Compile extensions during installation (For those need to train/inference for many times)
⚡ Quick Inference
Download pre-trained models: GFPGANv1.pth
Option 1: Load extensions just-in-time(JIT)
Option 2: Have successfully compiled extensions during installation