arXiv(opens in a new tab)Computer ScienceSep 2017Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:1709.02371

PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume

Deqing Sun, Xiaodong Yang, Ming-Yu Liu, Jan Kautz

Abstract

We present a compact but effective CNN model for optical flow, called PWC-Net. PWC-Net has been designed according to simple and well-established principles: pyramidal processing, warping, and the use of a cost volume. Cast in a learnable feature pyramid, PWC-Net uses the current optical flow estimate to warp the CNN features of the second image. It then uses the warped features and features of the first image to construct a cost volume, which is processed by a CNN to estimate the optical flow. PWC-Net is 17 times smaller in size and easier to train than the recent FlowNet2 model. Moreover, it outperforms all published optical flow methods on the MPI Sintel final pass and KITTI 2015 benchmarks, running at about 35 fps on Sintel resolution (1024×436) images. Our models are available on https://github.com/NVlabs/PWC-Net.

1. Introduction

Optical flow estimation is a core computer vision problem and has many applications, e.g., action recognition [44], autonomous driving [26], and video editing [8]. Decades of research efforts have led to impressive performances on challenging benchmarks [4, 12, 18]. Most top-performing methods adopt the energy minimization approach introduced by Horn and Schunck [19]. However, optimizing a complex energy function is usually computationally expensive for real-time applications.

One promising approach is to adopt the fast, scalable, and end-to-end trainable convolutional neural network (CNN) framework [31], which has largely advanced the field of computer vision in recent years. Inspired by the successes of deep learning in high-level vision tasks, Dosovitskiy et al. [15] propose two CNN models for optical flow, i.e., FlowNetS and FlowNetC, and introduce a paradigm shift. Their work shows the feasibility of directly estimating optical flow from raw images using a generic U-Net CNN architecture [40]. Although their performances are below the state of the art, FlowNetS and FlowNetC models are the best among their contemporary real-time methods.

Recently, Ilg et al. [24] stack several FlowNetC and

Figure

Figure 1. Left: PWC-Net outperforms all published methods on the MPI Sintel final pass benchmark in both accuracy and running time. Right: among existing end-to-end CNN models for flow, PWC-Net reaches the best balance between accuracy and size.

FlowNetS networks into a large model, called FlowNet2, which performs on par with state-of-the-art methods but runs much faster (Fig. 1). However, large models are more prone to the over-fitting problem, and as a result, the sub-networks of FlowNet2 have to be trained sequentially. Furthermore, FlowNet2 requires a memory footprint of 640MB and is not well-suited for mobile and embedded devices.

SpyNet [38] addresses the model size issue by combining deep learning with two classical optical flow estimation principles. SpyNet uses a spatial pyramid network and warps the second image toward the first one using the initial flow. The motion between the first and warped images is usually small. Thus SpyNet only needs a small network to estimate the motion from these two images. SpyNet performs on par with FlowNetC but below FlowNetS and FlowNet2 (Fig. 1). The results by FlowNet2 and SpyNet show a clear trade-off between accuracy and model size.

Is it possible to both increase the accuracy and reduce the size of a CNN model for optical flow? In principle, the trade-off between model size and accuracy imposes a fundamental limit for general machine learning algorithms. However, we find that combining domain knowledge with deep learning can achieve both goals simultaneously.

SpyNet shows the potential of combining classical principles with CNNs. However, we argue that its performance gap with FlowNetS and FlowNet2 is due to the partial use of the classical principles. First, traditional optical flow methods often pre-process the raw images to extract features that are invariant to shadows or lighting changes [4, 48]. Fur-

Figure

Figure 2. PWC-Net results on Sintel final pass (top) and KITTI 2015 (bottom) test sets. It outperforms all published flow methods to date.

ther, in the special case of stereo matching, a cost volume is a more discriminative representation of the disparity (1D flow) than raw images or features [20, 42, 59]. While constructing a full cost volume is computationally prohibitive for real-time optical flow estimation [55], this work constructs a “partial” cost volume by limiting the search range at each pyramid level. We can link different pyramid levels using a warping layer to estimate large displacement flow.

Our network, called PWC-Net, has been designed to make full use of these simple and well-established principles. It makes significant improvements in model size and accuracy over existing CNN models for optical flow (Figs. 1 and 2). At the time of writing, PWC-Net outperforms all published flow methods on the MPI Sintel final pass and KITTI 2015 benchmarks. Furthermore, PWC-Net is about 17 times smaller in size and provides 2 times faster inferencing than FlowNet2. It is also easier to train than SpyNet and FlowNet2 and runs at about 35 frames per second (fps) on Sintel resolution ( 1024×4361024 \times 436) images.

References (10)

  • Exploiting semantic information and deep matching for optical flow
  • Bounding Boxes, Segmentations and Object Coordinates: How Important is Recognition for 3D Scene Flow Estimation in Autonomous Driving Scenarios?
  • 3D Scene Flow Estimation with a Piecewise Rigid Scene Model
  • Object Scene Flow with Temporal Consistency
  • Cascaded Scene Flow Prediction using Semantic Segmentation
  • Object Scene Flow for Autonomous Vehicles
  • MirrorFlow: Exploiting Symmetries in Joint Optical Flow and Occlusion Estimation
  • UnFlow: Unsupervised Learning of Optical Flow with a Bidirectional Census Loss
  • Fast Multi-frame Stereo Scene Flow with Motion Segmentation
  • Optical Flow in Mostly Rigid Scenes