FlowNet: Learning Optical Flow with Convolutional Networks

Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Häusser, Caner Hazirbas, Vladimir Golkov, Patrick van der Smagt, Daniel Cremers, Thomas Brox

Abstract

FlowNet represents the first successful implementation of an end-to-end convolutional neural network (CNN) for optical flow estimation. By training on a massive, newly created synthetic dataset called "Flying Chairs," the authors demonstrate that CNNs can learn to solve the pixel-to-pixel correspondence problem and generalize effectively to real-world scenes. FlowNet achieves competitive accuracy while operating at real-time speeds, marking a significant shift from traditional variational optimization methods to deep learning in motion estimation.

Introduction: The Challenge of Optical Flow

Optical flow—the task of estimating the 2D motion of every pixel between two consecutive video frames—is a cornerstone of computer vision. Historically, this was solved using variational methods: complex optimization problems that are mathematically elegant but computationally expensive.

The transition to deep learning faced two primary hurdles. First, the Correspondence Problem: unlike image classification, optical flow requires a network to identify the same feature across two different images and calculate its displacement. Second, the Data Gap: training deep networks requires massive amounts of labeled data, which was scarce in the optical flow domain in 2015.

Methods: End-to-End Architectures

The authors proposed two distinct architectures to address these challenges:

  • FlowNetSimple: A "naive" approach where two input images are stacked into a 6-channel input and processed through a standard contractive CNN. This forces the network to learn image comparison implicitly.
  • FlowNetCorr: A specialized architecture that processes images through separate streams before combining them via a custom Correlation Layer. This layer explicitly performs multiplicative patch-wise comparisons between feature maps, mimicking the matching step in traditional algorithms.
The FlowNetCorr architecture features a custom correlation layer to explicitly match features between two input streams.

Both architectures utilize an Expanding Part (decoder) with "upconvolutional" layers and skip connections. These connections preserve fine-grained spatial details from earlier layers, allowing the network to output a high-resolution flow field.

Training on Synthetic Data

Because real-world ground truth for optical flow is difficult to capture, the authors created the Flying Chairs dataset. This synthetic collection consists of ~22,000 image pairs generated by overlaying 3D chair models onto random backgrounds with affine transformations.

A key insight of the paper is that synthetic data generalizes: despite its lack of realism, the network trained on Flying Chairs learned the fundamental "physics" of matching, allowing it to perform well on realistic datasets like MPI Sintel and KITTI.

Key Results and Performance

FlowNet's primary advantage is its speed. While traditional high-performing methods like EpicFlow can take up to 16 seconds per frame, FlowNet operates at 5–10 frames per second (0.08 to 0.15 seconds per frame).

Qualitative comparison on the Sintel benchmark showing the raw FlowNetS output and the improved results after variational refinement (+v).

In terms of accuracy, FlowNet achieved competitive results on the Sintel "Final" benchmark. The authors found that a quick variational post-processing step (denoted as "+v") could significantly smooth the noisy raw CNN output, improving both visual quality and the Average Endpoint Error (EPE).

Limitations and Conclusion

While revolutionary, FlowNet had limitations. FlowNetCorr struggled with very large displacements due to the limited search range of its correlation layer. Additionally, the network occasionally produced blurrier results in fine-textured regions compared to the best variational methods.

Nevertheless, FlowNet proved that CNNs could learn to find correspondences implicitly and that synthetic data is a viable surrogate for real-world training. This work paved the way for the current generation of deep-learning-based motion estimation algorithms.

Summary updated

BibTeX
@inproceedings{dosovitskiy2015flownet,
  author = {Alexey Dosovitskiy and Philipp Fischer and Eddy Ilg and Philip Häusser and Caner Hazirbas and Vladimir Golkov and Patrick van der Smagt and Daniel Cremers and Thomas Brox},
  title = {{FlowNet: Learning Optical Flow with Convolutional Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  doi = {10.1109/iccv.2015.316},
}
Figure