What is CodeFormer for?
CodeFormer is a face restorer. It Ihelps repairing the weird faces that Stable Diffusion generates sometimes. You first create an image using Stable Diffusion and then use CodeFormer to make the face look better.

It’s usually more powerful than the other alternative GFPGAN.
People usually run Stable Diffusion images first through CodeFormer and then through GFPGAN, or the other way around, for improved results.
How to use CodeFormer?
CodeFormer comes integrated into AUTOMATIC1111, so if you’re using that User Interface to use Stable Diffusion, you can just use CodeFormer from within the app.
For everyone else, the recommended way is either through Replicate or through the HuggingFace Spaces links below!