Learning Raw Image Denoising With Bayer Pattern Unification and Bayer Preserving Augmentation.

Jiaming Liu, Chihao Wu, Yuzhi Wang, Qin Xu, Yuqian Zhou, Haibin Huang, Chuan Wang, Shaofan Cai, Yifan Ding, Haoqiang Fan, Jue Wang · DOI

TL;DR

This paper introduces novel pre-processing and data augmentation techniques, BayerUnify and BayerAug, to improve deep learning-based raw image denoising. By unifying diverse Bayer patterns and developing a raw-specific augmentation strategy, they enable training a single, more robust denoising model, achieving state-of-the-art results in a challenging real-world denoising competition.

What Problem Does This Paper Address?

Image denoising is a critical task, especially for mobile devices where low-cost sensors often produce noisy images. While deep learning has shown great promise, denoising raw sensor data presents unique challenges. Raw images, captured directly from the sensor, contain various Bayer color filter array (CFA) patterns (e.g., RGGB, BGGR, GRBG). Training a single denoising model on data from cameras with different CFA patterns is difficult because the spatial arrangement of color information varies. Furthermore, standard data augmentation techniques (like flipping or cropping) that work well for RGB images can introduce artifacts or break the inherent structure of raw Bayer images, leading to poor model generalization. This paper aims to solve these issues by developing methods to effectively handle heterogeneous raw image datasets and perform valid data augmentation.

Methods

The paper proposes two key techniques:

  • Bayer Pattern Unification (BayerUnify): This method addresses the challenge of diverse Bayer patterns. During training, it uses cropping operations to convert all raw images into a single, unified Bayer pattern (e.g., BGGR). This allows a single denoising model to be trained on data from various sources, significantly increasing the effective training dataset size. For testing, a similar padding strategy is used to unify patterns before denoising, followed by removing the padding to recover the original pattern.
  • Bayer Preserving Augmentation (BayerAug): This technique tackles the problem of applying data augmentation to raw images without introducing artifacts. Standard augmentation like flipping can disrupt the Bayer pattern. BayerAug combines flipping and cropping in a specific order to ensure that the augmented raw image still adheres to a valid Bayer pattern. This preserves the spatial relationships and color information, leading to better model generalization.

These techniques are combined with a modified U-Net architecture for the denoising task.

Datasets

The primary dataset used is the Smartphone Image Denoising Dataset (SIDD) [1]. This dataset contains pairs of noisy and noise-free raw images captured by smartphone cameras, featuring different Bayer patterns and scenes. For their experiments, the authors created a specific train-test split from the SIDD training set, using "Scene 1" images for testing and the remaining for training to ensure generalization to unseen scenes.

Key Insights and Ideas

  • Unified Bayer Patterns are Crucial: The paper highlights that treating different Bayer patterns as distinct classes severely limits the training data and thus performance. Unifying them is key to leveraging heterogeneous datasets effectively.
  • Standard Augmentation is Harmful for Raw Images: The authors demonstrate that directly applying RGB augmentation techniques to raw Bayer images can lead to invalid patterns and artifacts, hindering performance. This underscores the need for specialized augmentation methods.
  • Simple Geometric Transformations Can Unify Patterns: The core idea of BayerUnify is surprisingly simple: carefully chosen cropping and padding operations can transform any Bayer pattern into a target one, enabling a unified training approach.
  • BayerAug Preserves Spatial Integrity: The insight behind BayerAug is that by carefully re-applying geometric transformations after an initial flip, the original spatial relationships and color mosaic can be restored, making augmentation valid.

Key Results

The proposed BayerUnify and BayerAug methods, when combined with a modified U-Net, achieved state-of-the-art performance in the NTIRE 2019 Real Image Denoising Challenge (Track 1). Specifically, their solution achieved a PSNR of 52.11 and a SSIM of 0.9969 on the official test set. Experiments showed that using BayerUnify alone improved performance over training pattern-specific models, and adding BayerAug further boosted generalization and performance on unseen scenes. The paper also demonstrated that "naïve" unification and augmentation methods (which incorrectly permute channels or apply standard flips) significantly degraded performance, validating the importance of their proposed techniques.

Limitations and Future Work

The paper acknowledges that their proposed methods are specifically designed for Bayer raw images. While they achieve excellent results, the complexity of the network architecture used for the challenge submission is not fully detailed in the main body, with a separate table providing a high-level overview. Future work could explore more advanced network architectures or investigate how these techniques might generalize to other types of CFA patterns or sensor data. The authors also suggest that raw image processing with deep learning is a promising direction, implying further research in this area is warranted.

Summary updated

BibTeX
@inproceedings{liu2019learning,
  author = {Jiaming Liu and Chihao Wu and Yuzhi Wang and Qin Xu and Yuqian Zhou and Haibin Huang and Chuan Wang and Shaofan Cai and Yifan Ding and Haoqiang Fan and Jue Wang},
  title = {{Learning Raw Image Denoising With Bayer Pattern Unification and Bayer Preserving Augmentation.}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00259},
}
Figure