arXiv(opens in a new tab)Computer ScienceApr 2015Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:1504.06852

FlowNet: Learning Optical Flow with Convolutional Networks

Alexey Dosovitskiy, P. Fischer, Eddy Ilg, Philip Häusser, C. Hazirbas, Vladimir Golkov, Patrick van der Smagt, D. Cremers, T. Brox

Abstract

Convolutional neural networks (CNNs) have recently been very successful in a variety of computer vision tasks, especially on those linked to recognition. Optical flow estimation has not been among the tasks where CNNs were successful. In this paper we construct appropriate CNNs which are capable of solving the optical flow estimation problem as a supervised learning task. We propose and compare two architectures: a generic architecture and another one including a layer that correlates feature vectors at different image locations.

Since existing ground truth datasets are not sufficiently large to train a CNN, we generate a synthetic Flying Chairs dataset. We show that networks trained on this unrealistic data still generalize very well to existing datasets such as Sintel and KITTI, achieving competitive accuracy at frame rates of 5 to 10 fps.

1 Introduction

Convolutional neural networks have become the method of choice in many fields of computer vision. They are classically applied to classification [25, 24], but recently presented architectures also allow for per-pixel predictions like semantic segmentation [28] or depth estimation from single images [10]. In this paper, we propose training CNNs end-to-end to learn predicting the optical flow field from a pair of images.

While optical flow estimation needs precise per-pixel localization, it also requires finding correspondences between two input images. This involves not only learning image feature representations, but also learning to match them at different locations in the two images. In this respect, optical flow estimation fundamentally differs from previous applications of CNNs.

Figure

Figure 1: We present neural networks which learn to estimate optical flow, being trained end-to-end. The information is first spatially compressed in a contractive part of the network and then refined in an expanding part.

Since it was not clear whether this task could be solved with a standard CNN architecture, we additionally developed an architecture with a correlation layer that explicitly provides matching capabilities. This architecture is trained end-to-end. The idea is to exploit the ability of convolutional networks to learn strong features at multiple levels of scale and abstraction and to help it with finding the actual correspondences based on these features. The layers on top of the correlation layer learn how to predict flow from these matches. Surprisingly, helping the network this way is not necessary and even the raw network can learn to predict optical flow with competitive accuracy.

Training such a network to predict generic optical flow requires a sufficiently large training set. Although data augmentation does help, the existing optical flow datasets are still too small to train a network on par with state of the art. Getting optical flow ground truth for realistic video material is known to be extremely difficult [7]. Trading in realism for quantity, we generate a synthetic Flying Chairs dataset which consists of random background images from Flickr on which we overlay segmented images of chairs from [1]. These data have little in common with the real world, but we can generate arbitrary amounts of samples with custom properties. CNNs trained on just these data generalize surprisingly well to realistic datasets, even without fine-tuning.

Leveraging an efficient GPU implementation of CNNs, our method is faster than most competitors. Our networks predict optical flow at up to 1010 image pairs per second on the full resolution of the Sintel dataset, achieving state-of-the-art accuracy among real-time methods.

References (37)

  • Seeing 3d chairs: exemplar part-based 2d-3d alignment using a large dataset of cad models
  • A database and evaluation methodology for optical flow
  • Fast edge-preserving patchmatch for large displacement optical flow
  • Learning parameterized models of image motion
  • High accuracy optical flow estimation based on a theory for warping
  • Large displacement optical flow: descriptor matching in variational motion estimation
  • A naturalistic open source movie for optical flow evaluation
  • Deep neural networks segment neuronal membranes in electron microscopy images
  • Learning to generate chairs with convolutional neural networks
  • Depth map prediction from a single image using a multi-scale deep network
  • Learning hierarchical features for scene labeling
  • Descriptor matching with convolutional neural networks: a comparison to SIFT. 2014 (opens arXiv in a new tab)
  • Nˆ4 -fields: Neural network nearest neighbor fields for image transforms
  • Vision meets robotics: The kitti dataset
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • Generative adversarial nets
  • Hypercolumns for object segmentation and fine-grained localization
  • im2gps: estimating geographic information from a single image
  • Determining optical flow
  • Caffe: Convolutional Architecture for Fast Feature Embedding
  • Optical flow with geometric occlusion estimation and fusion of multiple frames
  • Adam: A method for stochastic optimization
  • Unsupervised learning of depth and motion (opens arXiv in a new tab)
  • Imagenet classification with deep convolutional neural networks
  • Backpropagation applied to handwritten zip code recognition
  • Efficient closed-form solution to generalized boundary detection
  • Locally affine sparse-to-dense matching for motion and occlusion estimation
  • Fully convolutional networks for semantic segmentation
  • Dense estimation and object-based segmentation of the optical flow with robust techniques
  • EpicFlow: Edge-Preserving Interpolation of Correspondences for Optical Flow
  • Learning the local statistics of optical flow
  • Learning optical flow
  • Convolutional learning of spatio-temporal features
  • Structure- and motion-adaptive regularization for high accuracy optic flow
  • DeepFlow: Large displacement optical flow with deep matching
  • Computing the stereo matching cost with a convolutional neural network (opens arXiv in a new tab)
  • Visualizing and understanding convolutional networks