GFPGAN
Tencent ARC face restoration model that repairs blurry, low-res faces in old photos, with optional Real-ESRGAN background upscaling.
GFPGAN restores faces in old or low-quality photos using a pretrained StyleGAN2 prior, and can upscale the rest of the image with Real-ESRGAN. It is a Python command-line research project (PyTorch, NVIDIA GPU optional); many GUIs and ComfyUI nodes reuse its weights. The main code is Apache-2.0, but its licence file lists StyleGAN2- and DFDNet-derived parts under non-commercial terms, and the weights have no separate licence. It can shift identity slightly. Mature but inactive: last release v1.3.8 (Sep 2022), last commit Jul 2024.
The facts
| Question | Answer | Source | Checked |
|---|---|---|---|
| Runs on my machine? | Yes. Python script on your machine | github.com | Checked 7 weeks ago |
| Code licence | With conditions. Apache-2.0, except StyleGAN2- and DFDNet-derived parts under non-commercial licences | github.com | Checked 7 weeks ago |
| Model weights licence | Unknown. Repo LICENSE is Apache-2.0 with third-party exceptions (StyleGAN2-related parts carry extra restrictions); no separate licence for the released .pth checkpoints. Rechecked discussion #616 ("Is commercial use allowed?") and issue #641 (commercial-use request for GFPGANv1.4.pth): still no maintainer answer | github.com | Checked 3 weeks ago |
| Commercial use | With conditions. Unclear; bundled third-party code includes NVIDIA and DFDNet non-commercial terms | github.com | Checked 7 weeks ago |
| Paid services needed? | None required | github.com | Checked 7 weeks ago |
| Hardware | PyTorch; NVIDIA GPU with CUDA optional; the clean version needs no custom CUDA extensions | github.com | Checked 7 weeks ago |
| Operating systems | Linux listed; Windows and macOS not documented | github.com | Checked 7 weeks ago |
| Setup effort | Medium, clone repo, pip install basicsr, facexlib and requirements, download weights | github.com | Checked 7 weeks ago |
Each fact has its own date. Unknown means nobody has published it. We read their documentation; we didn’t install it. Running it yourself costs your hardware, electricity and setup time. Report a correction.
No licence changes since we started watching. Licence changes: follow GFPGAN and we email you if its terms change.
What it replaces, job by job
| Paid tool | Jobs | How far it goes |
|---|---|---|
| Topaz Gigapixel |
| 2 of 6 jobs. Face recovery is its main job; background upscaling goes through Real-ESRGAN. Command line only. |
Stars over time
Steady +1 star this week (0.1× its usual pace). Stars show attention, not quality. Where these numbers come from.