sczhou / codeformer

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

  • Public
  • 41.3M 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

Loading...

Generated in

This example was created by a different version, sczhou/codeformer:7de2ea26.

Run time and cost

This model costs approximately $0.0066 to run on Replicate, or 151 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 7 seconds.

Readme

Towards Robust Blind Face Restoration with Codebook Lookup Transformer (NeurIPS 2022) Paper | Project Page | Video

visitors

This web demo is for research purposes! If you want to use our CodeFormer for permanent free, you can run the [Github Code] locally or try out [Colab Demo] instead.


  ☕️ CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces. 🚀 Try CodeFormer for improved stable-diffusion generation!

If CodeFormer is helpful, please help to ⭐ the [Github Repo]. Thanks!

GitHub Stars

📋 License This project is licensed under S-Lab License 1.0. Redistribution and use for non-commercial purposes should follow this license. Note that Replicate API of CodeFormer cannot be used commercially.

📝 Citation If our work is useful for your research, please consider citing:

@inproceedings{zhou2022codeformer,
    author = {Zhou, Shangchen and Chan, Kelvin C.K. and Li, Chongyi and Loy, Chen Change},
    title = {Towards Robust Blind Face Restoration with Codebook Lookup TransFormer},
    booktitle = {NeurIPS},
    year = {2022}
}