$npx skillfedfor your agent

gfpgan

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

With conditionsPyPI Artificial IntelligenceReleased Sep 2022284.1K downloads / moApache License Version 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — gfpgan-1.3.8-py3-none-any.whl
v1.3.8 · released 2022-09-16 · 12 runtime deps: basicsr, facexlib, lmdb, numpy, opencv-python, pyyaml, scipy, tb-nightly

Yes, if you need face restoration and can work with a dormant package. The library is stable and well-established (37k+ GitHub stars), has no known vulnerabilities, and low install friction. However, expect no active maintenance or updates—use it for production only if you can tolerate a frozen codebase and are comfortable debugging against a 2022-era PyTorch ecosystem.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a pre-trained model file (e.g., GFPGANv1.3.pth) to be downloaded separately; PyTorch must be installed first.
  • Low install friction with a pure Python wheel.
  • Requires PyTorch and 12 runtime dependencies including torch, torchvision, and basicsr.

License · maintenance · safety

Apache License Version 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.

last release 2022-09-16 (1428 days) · last repo commit 2024-07-26 · 37,655 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 284,085 downloads/mo, #8,068 on PyPI

Verify before relying

pip install gfpgan

from gfpgan import GFPGANer

restorer = GFPGANer(model_path='GFPGANv1.3.pth', upscale=2)
restored_img, restored_faces = restorer.enhance(input_img, has_aligned=False, only_center_face=False, suffix='restored')
  • Whether the package works reliably on Windows or CPU-only systems despite the description mentioning support
  • Current compatibility with modern PyTorch versions beyond what the 2022 release was tested against
  • Performance characteristics and memory requirements for typical image sizes
Same gist for agents: .md · .json

What it is and what it does

GFPGAN is a face restoration tool built on PyTorch that uses a generative adversarial network to recover detail and clarity in degraded facial images. It leverages a pretrained StyleGAN2-based facial prior to perform blind restoration—meaning it works on faces of unknown quality without requiring alignment or preprocessing. The package includes multiple model versions (V1, V1.2, V1.3) with different trade-offs between sharpness and naturalness.

The typical workflow is to load a pretrained model, pass an image or folder of images through the restorer, and receive enhanced faces along with optional full-image upscaling via Real-ESRGAN. It depends on basicsr for training and inference infrastructure, facexlib for face detection and helper functions, and standard computer-vision libraries (OpenCV, NumPy, SciPy). The package is designed to run on GPU but includes a clean version that works on CPU.

Use it for

  • Restore old or low-resolution photographs where faces are blurry or degraded
  • Enhance security camera footage or surveillance images to improve facial clarity
  • Preprocess face images for downstream computer-vision tasks like recognition or analysis
  • Batch upscale and denoise portrait collections for archival or publication
  • Combine with Real-ESRGAN to restore both faces and background details in a single pass

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need face restoration and can work with a dormant package.

The library is stable and well-established (37k+ GitHub stars), has no known vulnerabilities, and low install friction. However, expect no active maintenance or updates—use it for production only if you can tolerate a frozen codebase and are comfortable debugging against a 2022-era PyTorch ecosystem.

Install

gfpgan on PyPI

Before you install

Low install friction with a pure Python wheel. Requires PyTorch and 12 runtime dependencies including torch, torchvision, and basicsr. The package is dormant (last release 2022-09-16, last commit 2024-07-26), so expect no active maintenance or bug fixes.

Requires a pre-trained model file (e.g., GFPGANv1.3.pth) to be downloaded separately; PyTorch must be installed first.

License in practice

Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install gfpgan

from gfpgan import GFPGANer

restorer = GFPGANer(model_path='GFPGANv1.3.pth', upscale=2)
restored_img, restored_faces = restorer.enhance(input_img, has_aligned=False, only_center_face=False, suffix='restored')

Verify before relying

  • Whether the package works reliably on Windows or CPU-only systems despite the description mentioning support
  • Current compatibility with modern PyTorch versions beyond what the 2022 release was tested against
  • Performance characteristics and memory requirements for typical image sizes

Package facts

LicenseApache License Version 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
12 packages
basicsrfacexliblmdbnumpyopencv-pythonpyyamlscipytb-nightlytorchtorchvisiontqdmyapf
MaintenanceDormant 1,428 days since the last release
Last repo commit
First released
Downloads284,085 / month, #8,068 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Evidence: gfpgan-1.3.8-py3-none-any.whl

Tags

Capabilities
face restoration neural networkenhance blurry faces in photosai face upscalingblind face restoration ganrestore low quality portraitsface super-resolution pytorchdenoise and sharpen faces
Topics
face-restorationgan-basedimage-enhancement
PyPI keywords
computer visionpytorchimage restorationsuper-resolutionface restorationgangfpgan

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “face restoration neural network”

  • gfpganGFPGAN restores and enhances degraded faces in images using a…
  • realesrganReal-ESRGAN upscales images and videos using deep learning models…
  • basicsrBasicSR is a PyTorch-based toolbox for image and video restoration…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also realesrgan · basicsr · retina-face · facenet-pytorch · face-alignment · mtcnn · retinaface-py · facexlib · clean-fid · face_recognition_models

Further reading