HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Towards Robust Blind Face Restoration with Codebook Lookup Transformer

Zhou Shangchen ; Chan Kelvin C. K. ; Li Chongyi ; Loy Chen Change

Towards Robust Blind Face Restoration with Codebook Lookup Transformer

Abstract

Blind face restoration is a highly ill-posed problem that often requiresauxiliary guidance to 1) improve the mapping from degraded inputs to desiredoutputs, or 2) complement high-quality details lost in the inputs. In thispaper, we demonstrate that a learned discrete codebook prior in a small proxyspace largely reduces the uncertainty and ambiguity of restoration mapping bycasting blind face restoration as a code prediction task, while providing richvisual atoms for generating high-quality faces. Under this paradigm, we proposea Transformer-based prediction network, named CodeFormer, to model the globalcomposition and context of the low-quality faces for code prediction, enablingthe discovery of natural faces that closely approximate the target faces evenwhen the inputs are severely degraded. To enhance the adaptiveness fordifferent degradation, we also propose a controllable feature transformationmodule that allows a flexible trade-off between fidelity and quality. Thanks tothe expressive codebook prior and global modeling, CodeFormer outperforms thestate of the arts in both quality and fidelity, showing superior robustness todegradation. Extensive experimental results on synthetic and real-worlddatasets verify the effectiveness of our method.

Code Repositories

sczhou/codeformer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
blind-face-restoration-on-celeba-testCodeFormer
FID: 60.62
IDS: 60
LPIPS: 29.9
PSNR: 22.18
SSIM: 0.61
blind-face-restoration-on-lfwPULSE
FID: 64.86
blind-face-restoration-on-lfwGPEN
FID: 57.58
blind-face-restoration-on-lfwCodeFormer
FID: 52.02
blind-face-restoration-on-lfwPSFRGAN
FID: 51.89
blind-face-restoration-on-lfwGLEAN
FID: 53.49
blind-face-restoration-on-lfwDFDNet
FID: 62.57
blind-face-restoration-on-lfwGFP-GAN
FID: 49.96
blind-face-restoration-on-widerGLEAN
FID: 47.11
blind-face-restoration-on-widerPSFRGAN
FID: 51.16
blind-face-restoration-on-widerCodeFormer
FID: 39.06
blind-face-restoration-on-widerGPEN
FID: 46.99
blind-face-restoration-on-widerDFDNet
FID: 57.84
blind-face-restoration-on-widerPULSE
FID: 73.59
blind-face-restoration-on-widerGFP-GAN
FID: 40.59

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Towards Robust Blind Face Restoration with Codebook Lookup Transformer | Papers | HyperAI