arXiv(opens in a new tab)Computer ScienceAug 2016

Manuscript Offprint

arXiv:1608.00367

Accelerating the Super-Resolution Convolutional Neural Network

Chao Dong, Chen Change Loy, Xiaoou Tang

Abstract

As a successful deep model applied in image super-resolution (SR), the Super-Resolution Convolutional Neural Network (SRCNN) [1, 2] has demonstrated superior performance to the previous hand-crafted models either in speed and restoration quality. However, the high computational cost still hinders it from practical usage that demands real-time performance (24 fps). In this paper, we aim at accelerating the current SRCNN, and propose a compact hourglass-shape CNN structure for faster and better SR. We re-design the SRCNN structure mainly in three aspects. First, we introduce a deconvolution layer at the end of the network, then the mapping is learned directly from the original low-resolution image (without interpolation) to the high-resolution one. Second, we reformulate the mapping layer by shrinking the input feature dimension before mapping and expanding back afterwards. Third, we adopt smaller filter sizes but more mapping layers. The proposed model achieves a speed up of more than 40 times with even superior restoration quality. Further, we present the parameter settings that can achieve real-time performance on a generic CPU while still maintaining good performance. A corresponding transfer strategy is also proposed for fast training and testing across different upscaling factors.

1 Introduction

Single image super-resolution (SR) aims at recovering a high-resolution (HR) image from a given low-resolution (LR) one. Recent SR algorithms are mostly learning-based (or patch-based) methods [1, 2, 3, 4, 5, 6, 7, 8] that learn a mapping between the LR and HR image spaces. Among them, the Super-Resolution Convolutional Neural Network (SRCNN) [1, 2] has drawn considerable attention due to its simple network structure and excellent restoration quality. Though SRCNN is already faster than most previous learning-based methods, the processing speed on large images is still unsatisfactory. For example, to upsample an 240×240240\times 240 image by a factor of 3, the speed of the original SRCNN [1] is about 1.32 fps, which is far from real-time (24 fps). To approach real-time, we should accelerate SRCNN for at least 17 times while keeping the previous performance. This sounds implausible at the first glance, as accelerating by simply reducing the parameters will severely impact the performance. However, when we delve into the network structure, we find two inherent limitations that restrict its running speed.

Figure

Figure 1: The proposed FSRCNN networks achieve better super-resolution quality than existing methods, and are tens of times faster. Especially, the FSRCNN-s can run in real-time (>24>24 fps) on a generic CPU. The chart is based on the Set14 [9] results summarized in Tables 3 and 4.

First, as a pre-processing step, the original LR image needs to be upsampled to the desired size using bicubic interpolation to form the input. Thus the computation complexity of SRCNN grows quadratically with the spatial size of the HR image (not the original LR image). For the upscaling factor nn, the computational cost of convolution with the interpolated LR image will be n2n^{2} times of that for the original LR one. This is also the restriction for most learning-based SR methods [10, 3, 4, 5, 7, 8]. If the network was learned directly from the original LR image, the acceleration would be significant, i.e., about n2n^{2} times faster.

The second restriction lies on the costly non-linear mapping step. In SRCNN, input image patches are projected on a high-dimensional LR feature space, then followed by a complex mapping to another high-dimensional HR feature space. Dong et al. [2] show that the mapping accuracy can be substantially improved by adopting a wider mapping layer, but at the cost of the running time. For example, the large SRCNN (SRCNN-Ex) [2] has 57,184 parameters, which are six times larger than that for SRCNN (8,032 parameters). Then the question is how to shrink the network scale while still keeping the previous accuracy.

According to the above observations, we investigate a more concise and efficient network structure for fast and accurate image SR. To solve the first problem, we adopt a deconvolution layer to replace the bicubic interpolation. To further ease the computational burden, we place the deconvolution layer at the end of the network, then the computational complexity is only proportional to the spatial size of the original LR image. It is worth noting that the deconvolution layer is not equal to a simple substitute of the conventional interpolation kernel like in FCN [13], or ‘unpooling+convolution’ like [14]. Instead, it consists of diverse automatically learned upsampling kernels (see Figure 3) that work jointly to generate the final HR output, and replacing these deconvolution filters with uniform interpolation kernels will result in a drastic PSNR drop (e.g., at least 0.9 dB on the Set5 dataset [15] for ×3\times 3).

For the second problem, we add a shrinking and an expanding layer at the beginning and the end of the mapping layer separately to restrict mapping in a low-dimensional feature space. Furthermore, we decompose a single wide mapping layer into several layers with a fixed filter size 3×33\times 3. The overall shape of the new structure looks like an hourglass, which is symmetrical on the whole, thick at the ends and thin in the middle. Experiments show that the proposed model, named as Fast Super-Resolution Convolutional Neural Networks (FSRCNN) , achieves a speed-up of more than 40×40\times with even superior performance than the SRCNN-Ex. In this work, we also present a small FSRCNN network (FSRCNN-s) that achieves similar restoration quality as SRCNN, but is 17.3617.36 times faster and can run in real time (24 fps) with a generic CPU. As shown in Figure 1, the FSRCNN networks are much faster than contemporary SR models yet achieving superior performance.

Apart from the notable improvement in speed, the FSRCNN also has another appealing property that could facilitate fast training and testing across different upscaling factors. Specifically, in FSRCNN, all convolution layers (except the deconvolution layer) can be shared by networks of different upscaling factors. During training, with a well-trained network, we only need to fine-tune the deconvolution layer for another upscaling factor with almost no loss of mapping accuracy. During testing, we only need to do convolution operations once, and upsample an image to different scales using the corresponding deconvolution layer.

Our contributions are three-fold: 1) We formulate a compact hourglass-shape CNN structure for fast image super-resolution. With the collaboration of a set of deconvolution filters, the network can learn an end-to-end mapping between the original LR and HR images with no pre-processing. 2) The proposed model achieves a speed up of at least 40×40\times than the SRCNN-Ex [2] while still keeping its exceptional performance. One of its small-size version can run in real-time (>>24 fps) on a generic CPU with better restoration quality than SRCNN [1]. 3) We transfer the convolution layers of the proposed networks for fast training and testing across different upscaling factors, with no loss of restoration quality.

References (29)

  • Learning a deep convolutional network for image super-resolution
  • Image super-resolution using deep convolutional networks
  • Fast direct super-resolution by simple functions
  • Anchored neighborhood regression for fast example-based super-resolution
  • A+: Adjusted anchored neighborhood regression for fast super-resolution
  • Deep network cascade for image super-resolution
  • Fast and accurate image upscaling with super-resolution forests
  • Deeply improved sparse coding for image super-resolution
  • On single image scale-up using sparse-representations
  • Image super-resolution via sparse representation
  • Visualizing and understanding convolutional networks
  • Deep convolutional neural network for image deconvolution
  • Fully convolutional networks for semantic segmentation
  • Learning to generate chairs with convolutional neural networks
  • Low-complexity single-image super-resolution based on nonnegative neighbor embedding
  • Deep cascaded bi-network for face hallucination
  • Depth map super resolution by deep multi-scale guidance
  • Accurate image super-resolution using very deep convolutional networks
  • Deeply-recursive convolutional network for image super-resolution
  • Exploiting linear structure within convolutional networks for efficient evaluation
  • Accelerating very deep convolutional networks for classification and detection
  • Network In Network
  • Delving deep into rectifiers: Surpassing human-level performance on imagenet classification
  • Single-image super-resolution: A benchmark
  • A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics
  • Single image super-resolution from transformed self-exemplars
  • Caffe: Convolutional architecture for fast feature embedding
  • Single-image super-resolution using sparse regression and natural image prior
  • An information fidelity criterion for image quality assessment using natural scene statistics