Papers › OSDFace: One-Step Diffusion Model for Face Restoration

OSDFace: One-Step Diffusion Model for Face Restoration

26 Nov 2024CVPR 2025 1arXiv:2411.17163archive 2025-07-28

Jingkai Wang, Jue Gong, Lin Zhang, Zheng Chen, Xing Liu, Hong Gu, Yutong Liu, Yulun Zhang, Xiaokang Yang

Diffusion models have demonstrated impressive performance in face restoration. Yet, their multi-step inference process remains computationally intensive, limiting their applicability in real-world scenarios. Moreover, existing methods often struggle to generate face images that are harmonious, realistic, and consistent with the subject's identity. In this work, we propose OSDFace, a novel one-step diffusion model for face restoration. Specifically, we propose a visual representation embedder (VRE) to better capture prior information and understand the input face. In VRE, low-quality faces are processed by a visual tokenizer and subsequently embedded with a vector-quantized dictionary to generate visual prompts. Additionally, we incorporate a facial identity loss derived from face recognition to further ensure identity consistency. We further employ a generative adversarial network (GAN) as a guidance model to encourage distribution alignment between the restored face and the ground truth. Experimental results demonstrate that OSDFace surpasses current state-of-the-art (SOTA) methods in both visual quality and quantitative metrics, generating high-fidelity, natural face images with high identity consistency. The code and model will be released at https://github.com/jkwang28/OSDFace.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2411.17163")

Code

Syntology Ran 4 of 18 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 4 ran · our draft was wrong.

By repository: official repository: 18 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jkwang28/osdface officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 4 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
14unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jkwang28/osdface. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calc_mean_std jkwang28/osdface/utils/wavelet_color_fix.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 4c8c3d07d7aa35cb · report
inplace_nonlinearity jkwang28/osdface/utils/vaehook.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 76a017e88938061d · report
nonlinearity jkwang28/osdface/lq_embed/vqvae.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 3137073275f8c21a · report
wavelet_blur jkwang28/osdface/utils/common.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 33644951e3d8dbaf · report
adain_color_fix jkwang28/osdface/utils/wavelet_color_fix.py official repository unverified no licence file found · pointer only · d9c806cdedc044ef · report
attn_forward jkwang28/osdface/utils/vaehook.py official repository unverified no licence file found · pointer only · 174fab602409ffc2 · report
attn_forward_new jkwang28/osdface/utils/vaehook.py official repository unverified no licence file found · pointer only · 08822a10826682a0 · report
cond_cast_float jkwang28/osdface/utils/devices.py official repository unverified no licence file found · pointer only · a1316b96fc0dc988 · report
cond_cast_unet jkwang28/osdface/utils/devices.py official repository unverified no licence file found · pointer only · 6e1abd17fa1ce3b2 · report
draw_valued_array jkwang28/osdface/utils/others.py official repository unverified no licence file found · pointer only · c90dc1793f7654e6 · report
get_device_for jkwang28/osdface/utils/devices.py official repository unverified no licence file found · pointer only · a861df384ac42eeb · report
get_obj_from_str jkwang28/osdface/utils/common.py official repository unverified no licence file found · pointer only · 96bb2bca43d02a51 · report
instantiate_from_config jkwang28/osdface/utils/common.py official repository unverified no licence file found · pointer only · 192db27a22fa2a3f · report
prepare_debug_output jkwang28/osdface/utils/others.py official repository unverified no licence file found · pointer only · e3350df7f513af97 · report
prepare_images_for_saving jkwang28/osdface/utils/others.py official repository unverified no licence file found · pointer only · c27182b440dbf60d · report
rope_2d jkwang28/osdface/lq_embed/vqvae.py official repository unverified no licence file found · pointer only · 1140ffe195a89d7c · report
sinusoidal_embeddings jkwang28/osdface/lq_embed/vqvae.py official repository unverified no licence file found · pointer only · f5f84caa054c6546 · report
wavelet_color_fix jkwang28/osdface/utils/wavelet_color_fix.py official repository unverified no licence file found · pointer only · 2353cdd05b03300f · report

Tasks

Face Recognitionmodel

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections