DDFlow: Learning Optical Flow with Unlabeled Data Distillation

Pengpeng Liu, Irwin King, Michael R. Lyu, Jia Xu

Abstract

Optical flow estimation is a critical task in computer vision, yet supervised methods are often hampered by the scarcity of real-world labeled data. DDFlow introduces an unsupervised "data distillation" framework that addresses the challenge of occluded pixels—a major failure point for traditional unsupervised methods. By training a teacher model to predict flow for visible pixels and using these predictions as pseudo-ground-truth for a student model trained on artificially occluded image patches, DDFlow achieves state-of-the-art unsupervised performance. On benchmarks like KITTI 2012 and 2015, DDFlow significantly outperforms prior unsupervised techniques and even surpasses some established supervised models.

Introduction

Optical flow estimation involves tracking the motion of every pixel between consecutive video frames. While deep learning has revolutionized this field, standard Convolutional Neural Networks (CNNs) typically require massive amounts of densely labeled data. Collecting such labels for real-world video is prohibitively difficult, leading researchers to rely on synthetic datasets. However, the resulting "domain gap" often causes models to perform poorly on real-world footage.

Unsupervised learning offers a promising alternative by training directly on raw, unlabeled video. Most unsupervised methods rely on the "brightness constancy" assumption, which posits that a pixel's appearance remains constant as it moves between frames. This assumption fails for occluded pixels—those that are covered by other objects or move out of the frame. Previous unsupervised approaches used hand-crafted mathematical heuristics to handle occlusions, which limited their accuracy. DDFlow proposes a purely data-driven approach to learn flow for occluded regions.

Methodology

The core of DDFlow is a Teacher-Student architecture, where both networks utilize the PWC-Net backbone. The training process is divided into three primary phases:

1. Teacher Model Training

The teacher model is trained using a standard photometric loss based on brightness constancy, supplemented by forward-backward consistency checks. This allows the teacher to learn highly accurate flow predictions, but primarily for non-occluded pixels where the brightness constancy assumption holds.

2. Hallucinating Occlusions

To teach the model how to handle occlusions without human labels, the researchers "hallucinate" occlusions. They take original image pairs and apply random cropping. A pixel that was visible in the original full-sized image might be pushed outside the boundaries of the cropped patch, effectively creating an artificial occlusion for the model processing that patch.

Conceptual overview of the DDFlow data distillation process.

3. Student Model Distillation

The student network is trained on these cropped patches. Because photometric loss cannot be calculated for the artificially occluded pixels, the student uses the teacher's predictions from the original, un-cropped images as pseudo-ground-truth targets. This "data distillation" enables the student to learn realistic motion priors for occluded regions from the teacher's reliable predictions on visible pixels.

Detailed pipeline of the DDFlow framework showing consistency checks and loss functions.

Experiments and Results

DDFlow was evaluated on several standard benchmarks, including Flying Chairs (pre-training), MPI Sintel, and KITTI 2012/2015.

Key Performance Metrics

  • KITTI 2012: DDFlow achieved an Fl-noc (percentage of erroneous non-occluded pixels) of 4.57%, outperforming the supervised FlowNet2.0 (4.82%).
  • KITTI 2015: The model reached an Fl-all error of 14.29%, representing a 37.7% relative improvement over the previous best unsupervised method.
  • Sintel: In zero-shot evaluations (trained only on Flying Chairs), DDFlow achieved an End Point Error (EPE) of 3.83 on Sintel Clean and 4.85 on Sintel Final, surpassing prior unsupervised models that were fine-tuned specifically for Sintel.

Conclusion

DDFlow demonstrates that data-driven distillation is a powerful tool for unsupervised optical flow estimation. By leveraging a teacher model to generate pseudo-labels for artificially occluded regions, the framework effectively bypasses the limitations of hand-crafted heuristics. While the current cropping strategy is most effective for boundary-related occlusions, the success of DDFlow suggests that unlabeled data distillation could be broadly applicable to other dense-prediction tasks like stereo matching and depth estimation.

Summary updated

BibTeX
@inproceedings{liu2019ddflow,
  author = {Pengpeng Liu and Irwin King and Michael R. Lyu and Jia Xu},
  title = {{DDFlow: Learning Optical Flow with Unlabeled Data Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33018770},
}
Figure