Fast Image Processing with Fully-Convolutional Networks

Qifeng Chen, Jia Xu, Vladlen Koltun

Abstract

This paper presents a general-purpose approach to accelerate complex image processing operators by approximating them with a specialized fully-convolutional network. The proposed Context Aggregation Network (CAN) utilizes dilated convolutions to capture global context while maintaining full spatial resolution. This architecture allows the system to emulate diverse effects—ranging from dehazing and smoothing to artistic stylization—in constant time. Experimental results demonstrate that CAN achieves significantly higher accuracy than previous state-of-the-art approximation methods while remaining compact enough for mobile deployment.

Introduction

Advanced image processing operators, such as $L_0$ gradient minimization or non-local dehazing, produce high-quality visual results but are often computationally ruinous. Processing high-resolution images with these algorithms can take seconds or even minutes, making them impractical for real-time applications.

Traditionally, researchers have attempted to accelerate these operators using a "downsample, process, and upsample" pipeline. However, this approach has two major flaws: it still requires running the slow original operator at a lower resolution, and the upsampling stage often fails to reconstruct high-frequency details accurately. This research seeks a "black-box" approximator that is fast, accurate, compact, and general enough to work across many different types of image effects without manual tuning.

The Context Aggregation Network (CAN)

The authors propose the Context Aggregation Network (CAN), a fully-convolutional architecture designed specifically for low-level image processing. Unlike standard CNNs used in computer vision that rely on pooling or striding—which reduce spatial resolution—the CAN maintains full resolution throughout the entire network.

Key Technical Components

  • Dilated Convolutions: To capture global image context (essential for non-local operators like dehazing), the network uses convolutions where filter elements are spread apart. By increasing the "dilation rate" exponentially with depth, the network achieves a massive receptive field while keeping the parameter count extremely low.
  • Adaptive Normalization: Standard Batch Normalization (BN) can sometimes degrade performance in image smoothing tasks. The authors implemented a learnable layer that blends BN with a simple identity mapping, allowing the network to automatically determine the optimal amount of normalization for a specific task.
  • Resolution Agnosticism: The model is trained on images randomly resized between 320p and 1440p, ensuring it can generalize to any input resolution, including 4K, without retraining.

Results and Performance

Visual comparison of various image processing operators approximated by the CAN model. The top row shows the original input images, while the bottom row shows the network's high-fidelity approximations of complex photographic and artistic effects.

The CAN model demonstrates exceptional performance across several metrics:

  • Accuracy: The network achieved a PSNR of 36 dB on the MIT-Adobe 5K test set. This represents a massive improvement over the previous state-of-the-art approximation method (BGU), which typically scores between 25 and 27 dB.
  • Speed and Efficiency: The model processes 1080p images in approximately 190ms on a Titan X GPU. Crucially, because the network's computational flow is identical regardless of the operator it mimics, the runtime is constant. It can approximate an algorithm that takes one hour just as quickly as one that takes one second.
  • Compactness: The primary CAN24 model uses only 37,000 parameters. This small footprint makes it ideal for deployment on mobile devices where on-chip SRAM is limited.
  • Versatility: The authors demonstrated that a single network can be trained to emulate ten different operators simultaneously by adding a small "indicator" input channel to specify the desired effect.

Conclusion and Future Work

The Context Aggregation Network proves that architectures originally designed for high-level semantic tasks can be adapted for high-performance, low-level image processing. By prioritizing context through dilated convolutions and maintaining full spatial resolution, CAN provides a robust, real-time alternative to computationally expensive algorithms.

While the current method is highly effective for operators that preserve spatial layout, it cannot yet approximate effects involving pixel warping or perspective correction. Future research may focus on incorporating temporal information to improve coherence for video applications and further optimizing the architecture for specialized mobile hardware like DSPs or FPGAs.

Summary updated

BibTeX
@inproceedings{chen2017fast,
  author = {Qifeng Chen and Jia Xu and Vladlen Koltun},
  title = {{Fast Image Processing with Fully-Convolutional Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.273},
}
Figure