Source-linked AI summary

DSLR-Quality Photos on Mobile Devices with Deep Convolutional Networks

Andrey Ignatov, Nikolay Kobyshev, Radu Timofte, Kenneth Vanhoey, Luc Van Gool

arXiv:1704.02470v2cs.CV

TL;DR

Smartphone hardware limits prevent mobile cameras from matching DSLR image quality, while existing enhancement tools often overlook texture and device-specific effects. The paper learns an end-to-end mobile-to-DSLR translation with a composite perceptual loss and paired-camera dataset, reporting DSLR-comparable enhanced images but noting artifacts and data-collection burdens.

  • Problem

    Smartphone sensors and optics limit resolution, color rendition, and noise performance, while existing enhancement tools generally omit texture quality, semantics, or device-specific processing.

  • Method

    The paper trains an end-to-end mapping from mobile photos to DSLR-quality images using paired cross-camera data and content, color, and adversarially learned texture losses.

  • Results

    Enhanced images demonstrate quality comparable to DSLR-taken photos, with the method achieving the best SSIM while competing with state-of-the-art PSNR performance.

  • Takeaways & Limitations

    The method can transform common smartphone cameras into higher-quality DSLR-like cameras and is applicable to cameras across various quality levels.

  • Takeaways & Limitations

    Fully automated enhancement can produce color deviations, excessive contrast, and amplified noise, while matched source-target pairs make adapting the process to other cameras tedious.

Abstract

from arXiv · show

Despite a rapid rise in the quality of built-in smartphone cameras, their physical limitations - small sensor size, compact lenses and the lack of specific hardware, - impede them to achieve the quality results of DSLR cameras. In this work we present an end-to-end deep learning approach that bridges this gap by translating ordinary photos into DSLR-quality images. We propose learning the translation function using a residual convolutional neural network that improves both color rendition and image sharpness. Since the standard mean squared loss is not well suited for measuring perceptual image quality, we introduce a composite perceptual error function that combines content, color and texture losses. The first two losses are defined analytically, while the texture loss is learned in an adversarial fashion. We also present DPED, a large-scale dataset that consists of real photos captured from three different phones and one high-end reflex camera. Our quantitative and qualitative assessments reveal that the enhanced image quality is comparable to that of DSLR-taken photos, while the methodology is generalized to any type of digital camera.

1 Introduction

Smartphone cameras remain limited relative to DSLRs, and existing enhancement tools generally address only global adjustments. The paper proposes learning an end-to-end mobile-to-DSLR mapping using paired data and a multi-term perceptual loss.

  • Small sensors and compact optics limit smartphone photo resolution, color rendition, and noise performance relative to DSLRs.
  • Existing automatic tools mainly adjust global parameters such as contrast or brightness, often ignoring texture, semantics, and device-specific characteristics.
  • 1.2 Contributions: The paper learns a transformation from a given mobile-camera distribution to a DSLR-quality image distribution using synchronously captured cross-camera scenes.
  • 1.2 Contributions: The model is trained end-to-end without additional supervision or handcrafted features, using a mapping function between mobile and DSLR photos.
  • 1.2 Contributions: DPED contains over 6K synchronized photos from one DSLR and three low-end smartphone cameras.
  • 1.2 Contributions: A composite loss combines color, texture, and content terms, while experiments evaluate both objective and subjective quality against originals and DSLR counterparts.

2 DSLR Photo Enhancement Dataset

DPED is a real-world, synchronously captured dataset pairing three smartphones with a DSLR across varied conditions. Because the cameras are not perfectly aligned, the paper calibrates pairs using feature matching, geometric transformation, cropping, and patch extraction.

  • DPED contains photos taken in the wild synchronously by three smartphones and one DSLR for general photo-quality enhancement.
  • The collection exceeded 22K photos captured over three weeks in varied places, illumination, and weather conditions using automatic default settings.
  • SIFT keypoint matching and RANSAC homography estimation identify corresponding regions before nonlinear transformation, intersection cropping, and DSLR downscaling.
  • The resulting aligned images are divided into 100×100px patches, with phone-image shifts and rotations refined using cross-correlation metrics.

3 Method

The method learns a DSLR-target enhancement mapping with a deep residual CNN trained on paired source and target images. Training minimizes a multi-term loss function, while blurred representations support color comparison.

  • Learning the translation: A deep residual CNN FW learns the translation from low-quality source photos to DSLR target photos using paired training images.The training set contains N image pairs, and the network is parameterized by weights W.
  • Loss function: Training minimizes a multi-term loss function L defined in the method's loss formulation.The loss function is composed of multiple terms rather than a single objective.
  • Color comparison: Gaussian blurring removes high frequencies, making color differences between phone and DSLR images easier to compare.Figure 5 shows original and blurred fragments from phone and DSLR cameras.

3.1 Loss function

The loss function combines content, color, texture, and total variation terms to compare enhanced and target images despite alignment distortions. Color and content losses are defined analytically, while texture quality is learned adversarially.

  • Per-pixel losses are unsuitable because different optics and sensors create non-constant pixel shifts even after alignment.
  • Color loss: Color loss compares Gaussian-blurred images, emphasizing brightness, contrast, and major colors while reducing sensitivity to texture, content, and small distortions.The Gaussian blur is implemented as a fixed convolutional layer followed by MSE.
  • Color loss: Color loss is nearly insensitive to shifts of ≤2 pixels and is 5-10 times smaller than MSE for 3-5px shifts.
  • Texture loss: Texture loss uses a GAN discriminator trained on grayscale fake and target images to learn a shift-invariant texture metric.The discriminator is pre-trained on phone-DSLR pairs and then jointly trained with the transformation network.
  • Content loss: Content loss measures Euclidean distance between enhanced and target VGG-19 feature representations to preserve image semantics.The features come from ReLU activation maps rather than pixels.
  • Total loss: The final loss is Ltotal = Lcontent + 0.4 · Ltexture + 0.1 · Lcolor + 400 · Ltv.The content loss uses relu 5 4 features, and coefficients were selected through preliminary DPED experiments.

3.2 Generator and Discriminator CNNs

The proposed system uses a fully convolutional transformation network with residual blocks and a discriminator that predicts whether an image came from the target DSLR camera.

  • Generator: The transformation network begins with a 9×9 layer, uses four residual blocks, and ends with additional 3×3 and 9×9 layers.All layers have 64 channels and ReLU activations, except the final layer, which uses scaled tanh.
  • Discriminator: The discriminator contains five convolutional layers with LeakyReLU and batch normalization, followed by a 1024-neuron fully connected layer.Its sigmoid output represents the probability that the input image was taken by the target DSLR camera.

3.3 Training details

Training used a fixed experimental pipeline across cameras, with optimization performed on an NVIDIA Titan X GPU using Adam-based stochastic gradient descent.

  • The network was trained for 20K iterations with a batch size of 50 on an NVIDIA Titan X GPU.
  • Adam optimization used a learning rate of 5e-4, and the complete pipeline and experimental setup were identical for all cameras.

4 Experiments

The experiments compare the proposed enhancement method with commercial, learned, and manual alternatives using objective DSLR-reference metrics and a no-reference user study. The method achieves strong perceptual and user-study results, while automated processing can produce artifacts and requires matched training pairs for new cameras.

  • 4.1 Benchmark methods: The evaluation compares APE, Dong et al., Johnson et al., manual enhancement, and the proposed method on smartphone-to-DSLR photo enhancement.The learned baselines use the same training image pairs as the proposed solution for each smartphone.
  • 4.2 Quantitative evaluation: The proposed method achieves the best SSIM and produces cleaner, sharper images, while its PSNR is comparable to Johnson et al. across datasets.PSNR differences vary by phone and may reflect alignment issues.
  • 4.3 User study: In the user study, DSLR and proposed-method images are selected much more often than original low-end phone photos across three mobile devices.Figure 10 aggregates pairwise comparisons over the nine scenes shown for each phone.
  • 4.3 User study: Users choose between DSLR and enhanced images almost randomly, indicating an indistinguishable quality difference in those comparisons.The study used pairwise selections among original, DSLR, and enhanced images.
  • 4.3 User study: The proposed method is selected more often than both manual enhancement and Apple Photo Enhancer in the additional iPhone comparisons.Manual enhancement is slightly preferred to APE, but the proposed method is preferred over both.
  • 4.4 Limitations: Typical artifacts include color deviations, excessive contrast, content changes, and amplified noise, especially in the lowest-quality iPhone photos.The method also requires matched source-target training pairs, making repetition for other cameras tedious.

5 Conclusions

The paper presents an end-to-end solution for transforming smartphone photos into DSLR-like images using perceptual losses and the DPED dataset. Its assessments report DSLR-comparable quality and applicability across cameras of varying quality levels.

  • 5 Conclusions: The proposed solution transforms common smartphone cameras into high-quality DSLR cameras with an end-to-end deep learning approach.The method combines content, color, and texture losses in a composite perceptual error function.
  • 5 Conclusions: DPED contains real photos captured from three phones and one high-end reflex camera for training and evaluation.The paper also describes an image-calibration procedure for image-to-image learning.
  • 5 Conclusions: Quantitative and qualitative assessments find that the enhanced images have quality comparable to DSLR-taken photos.The conclusion states that the method can be applied to cameras of various quality levels.

9 Appendix. Loss analysis

The appendix studies how four target-loss combinations affect photo enhancement on the DPED test subset. It compares the proposed color-plus-content-plus-texture loss with alternatives based on content, texture, and MSE.

  • 9 Appendix. Loss analysis: The analysis trains and validates CNNs on DPED using four loss combinations: color + content + texture, content + texture, MSE + texture, and MSE.Results are reported in Table 3 and visualized in Figure 19.
  • 9 Appendix. Loss analysis: The compared losses differ in whether they include color, content, texture, and mean squared error terms.The proposed combination is color + content + texture, while the alternatives remove or replace selected terms.
  • 9 Appendix. Loss analysis: Figure 19 presents iPhone-camera result images for the four target loss functions.The visual comparison corresponds to the loss combinations evaluated on the DPED test subset.
Loading 1704.02470v2…