sczhou/codeformer 🖼️🔢✓ → 🖼️

▶️ 45.7M runs 📅 Sep 2022 ⚙️ Cog 0.8.5 🔗 GitHub 📄 Paper ⚖️ License
face-restoration image-restoration image-upscaling

About

Robust face restoration algorithm for old photos / AI-generated faces

Example Output

Output

Example output

Performance Metrics

21.28s Prediction Time
55.07s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/mgxm/a11098b0-a18a-4c02-a19a-9a7045d68426/010.jpg",
  "upscale": 2,
  "face_upsample": true,
  "background_enhance": true,
  "codeformer_fidelity": "0.1"
}
Input Parameters
image (required) Type: string
Input image
upscale Type: integerDefault: 2
The final upsampling scale of the image
face_upsample Type: booleanDefault: true
Upsample restored faces for high-resolution AI-created images
background_enhance Type: booleanDefault: true
Enhance background image with Real-ESRGAN
codeformer_fidelity Type: numberDefault: 0.5Range: 0 - 1
Balance the quality (lower number) and fidelity (higher number).
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
	detect 1 faces
Version Details
Version ID
cc4956dd26fa5a7185d5660cc9100fab1b8070a1d1654a8bb5eb6d443b020bb2
Version Created
January 20, 2025
Run on Replicate →