Deep Photo Enhancer: Unpaired Learning for Image Enhancement From Photographs With GANs

Yu-Sheng Chen, Yu-Ching Wang, Man-Hsin Kao, Yung-Yu ChuangCVPR 2018

Abstract

This paper proposes an unpaired learning method for image enhancement. Given a set of photographs with the desired characteristics, the proposed method learns a photo enhancer which transforms an input image into an enhanced image with those characteristics. The method is based on the framework of two-way generative adversarial networks (GANs) with several improvements. First, we augment the U-Net with global features and show that it is more effective. The global U-Net acts as the generator in our GAN model. Second, we improve Wasserstein GAN (WGAN) with an adaptive weighting scheme. With this scheme, training converges faster and better, and is less sensitive to parameters than WGAN-GP. Finally, we propose to use individual batch normalization layers for generators in two-way GANs. It helps generators better adapt to their own input distributions. All together, they significantly improve the stability of GAN training for our application. Both quantitative and visual results show that the proposed method is effective for enhancing images.

Introduction

High-end image enhancement traditionally requires manual retouching by experts or supervised deep learning models trained on large paired datasets, such as the MIT-Adobe 5K dataset. However, collecting thousands of high-quality "before and after" image pairs is both difficult and expensive. While unpaired learning frameworks like CycleGAN allow models to learn from separate sets of "good" and "bad" photos, they often struggle with training instability, a lack of global scene context, and distribution shifts between real and generated images.

Methodology

The Deep Photo Enhancer addresses these hurdles through a two-way GAN framework (Figure 1) that incorporates three primary architectural and algorithmic innovations: a Global U-Net generator, an Adaptive WGAN (A-WGAN) scheme, and Individual Batch Normalization (iBN).

The proposed 1-way and 2-way GAN frameworks for unpaired image enhancement.

Global U-Net

Standard U-Net architectures often focus on local pixel changes, potentially ignoring global context like overall lighting or scene category. The authors propose the Global U-Net (Figure 2), which augments the traditional U-Net with a global feature extractor. This branch captures high-level information and fuses it back into the local feature maps, providing the necessary "artistic" context to decide how to enhance specific regions based on the overall scene.

The Global U-Net architecture, which integrates a global feature branch to provide high-level context to the local feature maps.

Adaptive WGAN (A-WGAN)

To improve training stability, the authors introduced an adaptive weighting scheme for Wasserstein GANs. While WGAN with Gradient Penalty (WGAN-GP) is popular, it is highly sensitive to the penalty weight ($\lambda$). The proposed A-WGAN automatically adjusts $\lambda$ during training to keep the gradient norm within a desired "sweet spot" ([1.001, 1.05]), leading to faster and more reliable convergence without extensive hyperparameter tuning.

Individual Batch Normalization (iBN)

In two-way GANs, the generator processes inputs from two distinct sources: real images and generated "fake" images. Because these sources have different statistical distributions, the authors utilize Individual Batch Normalization (iBN). By using separate BN layers for each path, the generator can better adapt to its specific input source, significantly reducing visual artifacts.

Key Results

The model was evaluated on the MIT-Adobe 5K dataset and a curated HDR dataset of 627 high-quality images.

  • Superior Accuracy: On the MIT-Adobe 5K benchmark, the proposed architecture achieved a PSNR of 33.93 dB, significantly outperforming standard U-Nets (31.06 dB).
  • User Preference: In a blind user study with 20 participants, the Deep Photo Enhancer was preferred by 81% of users over existing methods like DPED.
  • Efficiency: The model is highly efficient, running at 50 fps on an NVIDIA GTX 1080 Ti for $512 \times 512$ images, making it viable for real-time applications.

Limitations and Future Work

Despite its success, the model can occasionally amplify sensor noise in extremely dark regions or reproduce halo artifacts inherited from tone-mapped HDR training data. The authors suggest that the adaptive weighting and iBN techniques are general-purpose and could be applied to other GAN-based tasks beyond image enhancement, such as style transfer or image synthesis.

Summary updated

BibTeX
@inproceedings{chen2018deep,
  author = {Yu-Sheng Chen and Yu-Ching Wang and Man-Hsin Kao and Yung-Yu Chuang},
  title = {{Deep Photo Enhancer: Unpaired Learning for Image Enhancement From Photographs With GANs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=BkWn5yGdZr},
}
Figure