Papers › VQFR: Blind Face Restoration with Vector-Quantized Dictionary and Parallel Decoder

VQFR: Blind Face Restoration with Vector-Quantized Dictionary and Parallel Decoder

13 May 2022arXiv:2205.06803archive 2025-07-28

YuChao Gu, Xintao Wang, Liangbin Xie, Chao Dong, Gen Li, Ying Shan, Ming-Ming Cheng

Although generative facial prior and geometric prior have recently demonstrated high-quality results for blind face restoration, producing fine-grained facial details faithful to inputs remains a challenging problem. Motivated by the classical dictionary-based methods and the recent vector quantization (VQ) technique, we propose a VQ-based face restoration method - VQFR. VQFR takes advantage of high-quality low-level feature banks extracted from high-quality faces and can thus help recover realistic facial details. However, the simple application of the VQ codebook cannot achieve good results with faithful details and identity preservation. Therefore, we further introduce two special network designs. 1). We first investigate the compression patch size in the VQ codebook and find that the VQ codebook designed with a proper compression patch size is crucial to balance the quality and fidelity. 2). To further fuse low-level features from inputs while not "contaminating" the realistic details generated from the VQ codebook, we proposed a parallel decoder consisting of a texture decoder and a main decoder. Those two decoders then interact with a texture warping module with deformable convolution. Equipped with the VQ codebook as a facial detail dictionary and the parallel decoder design, the proposed VQFR can largely enhance the restored quality of facial details while keeping the fidelity to previous methods.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2205.06803")

Code

Syntology Ran 9 of 15 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 8 ran with no contract checked.

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

tencentarc/vqfr 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

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

1ran · our draft was wrong
8ran
6unverified

Licence: 15 of the 15 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 tencentarc/vqfr. “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.

DCNv2Pack tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran fingerprinted licence not identified · pointer only · b39cff2183f6ab2c · report
InpFeatConv tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran licence not identified · pointer only · 7b32beb0e745f885 · report
ModulatedDeformConvFunction tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran licence not identified · pointer only · a9032a215717b327 · report
ModulatedDeformConvPack tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran licence not identified · pointer only · 78978c97f6293a19 · report
ResnetBlock tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran licence not identified · pointer only · c7e6e97e1951732e · report
UpDownSample tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran fingerprinted licence not identified · pointer only · 0eb17d164a6a2ae8 · report
VQGANDecoder tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran licence not identified · pointer only · 1c7b1a47e3f2e5da · report
VQGANEncoder tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran licence not identified · pointer only · dbdd8d8a22505791 · report
get_root_logger tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository ran · our draft was wrong licence not identified · pointer only · 56fbc8f16d71801d · report
GeneralizedQuantizer tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository unverified licence not identified · pointer only · 954bcb0ab2aff115 · report
MainDecoder tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository unverified licence not identified · pointer only · 7d041853e05afba5 · report
ModulatedDeformConv tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository unverified licence not identified · pointer only · 9ad02ae1b92be076 · report
TextureWarpingModule tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository unverified licence not identified · pointer only · 34f1e2720da9e432 · report
VQFRv1 tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository unverified licence not identified · pointer only · a13b8d4c1525ed99 · report
build_quantizer tencentarc/vqfr/vqfr/archs/vqfrv1_arch.py official repository unverified licence not identified · pointer only · c48bd8317e02c6f5 · report

Tasks

Blind Face RestorationDecoderQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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