CodeFormer

A combined face restoration and upscaling approach with fine control

What it is

An open face restoration approach from NTU combining a codebook prior with a Transformer, letting you tune the balance between fidelity and quality. It handles severely degraded faces better than plain upscaling.

Highlights

  • Adjustable balance between fidelity and quality
  • Strong on severely degraded faces
  • Restoration and upscaling in one pass
  • Multiple pretrained weights offered

How to use

Install it, run with chosen weights and a fidelity parameter, and get the restored face image.

License

Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.