jkwang28/OSDFace
Official Repo for CVPR 2025 paper "OSDFace: One-Step Diffusion Model for Face Restoration"
What it solves
Traditional face restoration with diffusion models often requires many iterative steps, which is slow and computationally expensive. Existing methods also tend to produce faces that look unnatural or don't closely match the original person's identity. OSDFace addresses these problems by restoring a clean, high-fidelity face from a low-quality input in just one step, while keeping the identity consistent with the real person.
How it works
OSDFace is built around a one-step diffusion pipeline. Instead of running many denoising iterations, it uses a single forward pass to generate the restored face. To capture useful details from the low-quality input, it introduces a Visual Representation Embedder (VRE) that breaks the input into visual tokens and matches them against a learned dictionary of face features. This creates a visual prompt that guides the restoration. The model also uses a facial identity loss (based on face recognition) to keep the identity stable, and a generative adversarial network (GAN) as an extra guide to make the output distribution match real face photos. The training data includes FFHQ and FFHQR datasets, resized to 512x512, and the model is tested on synthetic and real-world face datasets.
Who it's for
This project is aimed at researchers and developers working on face restoration, image enhancement, or generative models. It provides pretrained models and inference code so that someone can restore faces from low-quality photos with a single forward pass. The training code is not released yet; only inference is available at the moment.
Highlights
- Officially accepted at CVPR 2025.
- One-step inference: restores a face in a single pass, much faster than multi-step diffusion models.
- Visual Representation Embedder (VRE) with a vector-quantized dictionary to inject facial priors.
- Identity loss and GAN guidance produce high-fidelity, natural-looking faces with strong identity consistency.
- State-of-the-art results on synthetic (CelebA-Test) and real-world datasets (Wider-Test, LFW-Test, WebPhoto-Test).
- Pretrained models and inference scripts are publicly available.
Related
- Project
- Project
- Project
- Project