lucataco / codeformer

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

  • Public
  • 3.2M runs
  • L40S
  • GitHub
  • Paper
  • License

Input

image
*file

Input image

number
(minimum: 0, maximum: 1)

Balance the quality (lower number) and fidelity (higher number).

Default: 0.5

boolean

Enhance background image with Real-ESRGAN

Default: true

boolean

Upsample restored faces for high-resolution AI-created images

Default: true

integer

The final upsampling scale of the image

Default: 2

Output

output
Generated in

Run time and cost

This model costs approximately $0.0031 to run on Replicate, or 322 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 4 seconds.

Readme

This an implementation of the original CodeFormer model onto the Nvidia L40S

Give me a follow if you like my work! @lucataco93