lucataco/codeformer 🖼️🔢✓ → 🖼️

▶️ 7.4M runs 📅 Sep 2023 ⚙️ 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

1.88s Prediction Time
8.46s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/JTjMycH2wZpm6LunkJozXGi7JKsRMbcDiuuoLjJ31z5DyTuj/codeformer.jpg",
  "upscale": 1,
  "face_upsample": true,
  "background_enhance": true,
  "codeformer_fidelity": 0.7
}
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 2 faces
Version Details
Version ID
78f2bab438ab0ffc85a68cdfd316a2ecd3994b5dd26aa6b3d203357b45e5eb1b
Version Created
September 6, 2023
Run on Replicate →