Generating Aligned Pseudo-Supervision from Non-Aligned Data for Image Restoration in Under-Display Camera

Ruicheng Feng, Chongyi Li, Huaijin G. Chen, Shuai Li, Jinwei Gu, Chen Change Loy

TL;DR

This paper tackles the challenge of training Under-Display Camera (UDC) image restoration models by proposing a novel framework, AlignFormer, that generates high-quality, aligned pseudo-ground truth data from misaligned real-world UDC and normal camera image pairs. This approach overcomes the limitations of existing synthetic or monitor-based datasets, leading to significantly improved restoration performance on real UDC images.

What Problem Does This Paper Address?

Under-display cameras (UDCs) are becoming increasingly popular in smartphones for their seamless integration, but they suffer from significant image quality degradation due to diffraction artifacts. Training effective UDC image restoration models requires large datasets of perfectly aligned UDC images and their high-quality counterparts. However, collecting such data is extremely difficult. Existing methods rely on monitor-based systems or simulations, which introduce domain gaps and lack real-world fidelity. While capturing stereo pairs with a UDC and a normal camera is a promising alternative, these pairs are inherently misaligned due to perspective and depth-of-field differences, and suffer from a large domain discrepancy (color shifts, artifacts). This paper aims to bridge this gap by creating a method to generate well-aligned, high-quality pseudo-ground truth data from these imperfect stereo pairs.

Methods

The core of the proposed solution is AlignFormer, a Transformer-based framework designed to mitigate both domain discrepancy and spatial misalignment. It consists of two key components:

  • Domain Alignment Module (DAM): Inspired by style-based architectures, DAM uses a guidance net and a matching net to modulate UDC image features to better match the style (color, illuminance, contrast) of the reference image. This helps in more robust correspondence matching.
  • Geometric Alignment Module (GAM): This module leverages geometric cues, specifically optical flow, within a Transformer's attention mechanism. It uses a pre-trained optical flow estimator to guide the attention to search for corresponding pixels more accurately and effectively within local regions, addressing the spatial misalignment.

The framework also incorporates a PPM-UNet as a baseline restoration network, which uses Pyramid Pooling Module to incorporate global image priors for better restoration.

Datasets

The authors introduce a newly collected real-world dataset consisting of 330 UDC and normal camera stereo image pairs, covering both indoor and outdoor scenes. This dataset is captured using a ZTE Axon 20 and an iPhone 13 Pro, physically aligned as much as possible. For training, they crop these images into 512x512 patches.

They also compare their method against models trained on existing datasets, such as the synthetic dataset from Feng et al. [3].

Key Insights and Ideas

  • Real-world data is crucial: The paper strongly emphasizes that synthetic datasets, while useful, cannot fully capture the complexities of real-world UDC degradation, leading to poor generalization.
  • Alignment is key, but difficult: Even with careful stereo capture, significant spatial misalignment and domain discrepancy persist, requiring specialized methods beyond simple homography.
  • Transformer attention can be guided: By incorporating geometric cues (optical flow) into the Transformer's attention mechanism, AlignFormer can effectively discover correspondences and overcome misalignment.
  • Domain adaptation is a prerequisite for alignment: Aligning features in a domain-adapted space (using DAM) significantly improves the accuracy of geometric alignment.
  • Pseudo-ground truth unlocks advanced training: Generating high-quality, aligned pseudo-pairs allows for end-to-end training of restoration networks using standard pixel-wise losses, which is not feasible with misaligned data.

Key Results

  • Quantitative Improvement: AlignFormer, when used to generate pseudo-ground truth, enables a baseline PPM-UNet to achieve state-of-the-art results on real UDC test sets, outperforming existing methods in PSNR, SSIM, LPIPS, and other metrics. For instance, their "AlignFormer + PPM-UNet (Ours)" achieved a PSNR of 22.95 and SSIM of 0.8581, significantly higher than other methods.
  • Qualitative Improvement: Visual comparisons show that AlignFormer effectively suppresses flares, removes artifacts, and restores finer details and textures, producing visually pleasing results that are much closer to the reference images compared to other methods.
  • Ablation Studies: The paper demonstrates the effectiveness of both the DAM and GAM components, showing that removing DAM leads to worse alignment, and using better optical flow estimators (like RAFT) further improves alignment accuracy.

Limitations and Future Work

  • Large Highlight Regions: The current method still struggles with very large and intense highlight regions, leading to blurry results. Future work could focus on specialized designs for limited dynamic range and remedying over-saturation.
  • Domain-Specific Designs: While effective, the baseline PPM-UNet could be further improved with more domain-specific architectural choices for UDC restoration.
  • Broader Applicability: The authors suggest their framework can be extended to generate aligned pseudo-supervision for other tasks involving non-aligned data, such as low-light or low-resolution image enhancement.

Summary updated

BibTeX
@inproceedings{feng2023generating,
  author = {Ruicheng Feng and Chongyi Li and Huaijin G. Chen and Shuai Li and Jinwei Gu and Chen Change Loy},
  title = {{Generating Aligned Pseudo-Supervision from Non-Aligned Data for Image Restoration in Under-Display Camera}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=xpx6dmBMo2},
}
Figure