AI Photo Restoration 2026: GFPGAN (38k Stars) vs CodeFormer - Bring Old Photos Back to Life, Free

๐Ÿ”ง AI Tools 2026-08-03 2 min read

Grandma's 1980s photo is blurry, scratched and faded. Paid restoration services charge per photo. Two open-source models restore faces and details locally and free - here is how they compare in 2026.

💡 What You Will Learn

Grandma's 1980s photo is blurry, scratched and faded. Paid restoration services charge per photo. Two open-source models restore faces and details locally and free - here is how they compare in 2026.

📜 Table of Contents

The short answer

The two open-source AI photo restoration models that matter in 2026 are GFPGAN (37,645 stars) - the practical face restoration workhorse - and CodeFormer (18,089 stars), which handles a wider range of degradations with a controllable fidelity knob. Both run locally, free, and restore old or damaged photos in seconds.

GFPGAN - the face specialist

pip install gfpgan
# or use the inference script
python inference_gfpgan.py -i inputs/ -o results/ -v 1.3

CodeFormer - the all-rounder

python inference_codeformer.py -w 0.5 --input_path inputs --output_path results

Practical comparison

Aspect GFPGAN CodeFormer
Faces Excellent Excellent
Text/backgrounds OK Better
Control knob Little Fidelity weight
Speed Fast Fast

Tips for best results

  1. Run face restoration first, then upscale with Real-ESRGAN (see our guide) for a full pipeline.
  2. For heavily damaged photos, try CodeFormer with w=0.3-0.5, then compare with w=0.7.
  3. Batch process old family albums - both tools handle folders.

FAQ

Are these really free? Yes - open source (CodeFormer has a non-commercial license; GFPGAN is for non-commercial use - check licenses for commercial work).

Do they work on non-face photos? GFPGAN focuses on faces; CodeFormer handles general restoration better.

Can they fix color? They improve clarity and details; color grading is often still needed manually.

Related

❓ FAQ

Are these really free?

Yes - open source (CodeFormer has a non-commercial license; GFPGAN is for non-commercial use - check licenses for commercial work).

Do they work on non-face photos?

GFPGAN focuses on faces; CodeFormer handles general restoration better.

Can they fix color?

They improve clarity and details; color grading is often still needed manually.

Related Articles
2026-08-23
Best AI Image Generator in Antwerp 2026: 6 Tools for Fashion and Jewelry Brands
2026-08-12
AI Generative Fill 2026: Extend Any Photo With Open Source Tools, Free and Locally
2026-07-14
Claude Code Pricing 2026: How Much Does It Really Cost? Full Breakdown & Savings Tips

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only โ€” no paid placements.

๐Ÿ’ฌ Comments (0)

No comments yet. Be the first!

Login to comment