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-07-19
AI API Gateway Comparison: Unified Management for Multiple AI Models
2026-07-27
Best AI Text-to-Speech in 2026: Top 10 Tools Compared for Natural Voice Quality
2026-10-15
Best AI Meeting Notetaker in Winnipeg 2026: 5 Tools for English-French Meetings
2026-07-25
Best Ai Slide Deck Generator in 2026: Top 10 Tools Compared
2026-08-07
AI Chat Widget: 4 Open-Source Ways to Add Chat to Any Website
2026-08-03
AI Voice Over Generator 2026: Kokoro (8k Stars) vs Piper vs Coqui TTS - Free Narration for Videos

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