Introduction
Optical flow estimation—the process of determining pixel-level motion between consecutive video frames—is a fundamental task in computer vision with applications ranging from autonomous navigation to video editing. Despite its importance, training robust optical flow models remains a significant challenge due to the difficulty of obtaining large-scale, high-quality ground-truth data for real-world scenes. This paper introduces "Depthstillation," a novel framework that leverages the abundance of static images on the internet to train optical flow models, bypassing the limitations of traditional synthetic and self-supervised datasets.
The Data Bottleneck in Optical Flow
Deep learning models for optical flow are notoriously data-hungry. Historically, researchers have relied on two primary sources of training data, each with distinct drawbacks:
- Synthetic CGI Datasets: While these provide perfect ground-truth labels, they often suffer from a "domain shift." Models trained on cartoonish or simplified synthetic environments frequently fail to generalize to the complexity and noise of real-world imagery.
- Unlabeled Real Video: Using real footage avoids the domain shift but lacks ground-truth labels. Self-supervised methods attempt to fill this gap but often struggle with occlusions, lighting changes, and textureless regions.
The authors propose a third way: generating perfectly labeled, realistic training data from single, static real-world photos.
The Depthstillation Framework
The core of the proposed method is Depthstillation, a four-step pipeline designed to "distill" motion information from a single image ($I_0$).
- Monocular Depth Estimation: The process begins by passing a single real image through a pre-trained depth estimation network (e.g., MiDaS). This produces a 3D representation of the scene.
- Virtual Camera Motion: A virtual camera is "moved" from its original position to a new position ($c_1$) using randomized rotations and translations.
- Synthesis via Forward Warping: By projecting the 3D points from the original image into the new camera's coordinate system, the model generates a second frame ($I_1$). Because the 3D structure and camera trajectory are known, the exact optical flow between $I_0$ and $I_1$ can be computed analytically.
- Refinement and Independent Motion: To handle "holes" created by camera movement (disocclusions), the authors employ inpainting techniques. Furthermore, to simulate dynamic scenes, they use Mask R-CNN to segment objects and assign them independent virtual 3D motions, moving them separately from the background.
Results and Generalization
The authors evaluated their method by creating two "distilled" datasets, dCOCO and dDAVIS, and testing them on standard benchmarks like Sintel and KITTI.
The results demonstrate that training on real-world textures, even with imperfect estimated depth, leads to superior generalization. For instance, a RAFT model trained on dCOCO achieved an End-Point Error (EPE) of 1.82 on the KITTI 2012 benchmark. In contrast, the same model trained on the standard synthetic "Chairs" dataset resulted in a much higher EPE of 5.14. This suggests that realistic appearance is more critical for cross-dataset generalization than perfectly accurate geometry.
Furthermore, models trained via Depthstillation outperformed established self-supervised methods (such as UFlow) when transferring to new, unseen real-world datasets. The best performance was achieved by combining "depthstilled" data with traditional synthetic data, leveraging the strengths of both: complex occlusion handling from CGI and realistic appearance from distilled real images.
Limitations and Future Directions
While promising, Depthstillation has limitations. The quality of the generated data is inherently tied to the accuracy of the monocular depth estimator. Additionally, the current framework primarily simulates rigid motions and struggles with complex non-rigid deformations, such as a person waving or foliage moving in the wind. Future research may focus on incorporating more sophisticated motion priors to better reflect the physical realities of human and vehicular movement.
Conclusion
By demonstrating that motion can be learned effectively from still images, this work opens a new avenue for scaling optical flow training. Depthstillation provides a scalable way to generate high-quality, labeled training data that bridges the gap between synthetic simulations and the complexities of the real world.
Summary updated