TL;DR
This paper introduces SemARFlow, a novel unsupervised optical flow estimation method for autonomous driving that leverages semantic segmentation masks. By injecting semantic information into the network's encoder and a learned upsampler, and using semantic augmentation for self-supervision, SemARFlow significantly improves flow accuracy, especially around object boundaries, and enhances generalization across datasets.
What Problem Does This Paper Address?
Estimating optical flow (pixel-level motion between video frames) is crucial for autonomous driving, but it's notoriously difficult in challenging scenarios like occlusions, low-texture areas, and near motion boundaries. Traditional unsupervised methods struggle with these ambiguities due to a lack of strong constraints. While supervised methods exist, obtaining accurate ground-truth flow for real-world driving data is prohibitively expensive, leading to reliance on synthetic data which often doesn't transfer well to real scenarios. This paper aims to bridge this gap by using readily available semantic segmentation information to provide richer context and better constrain unsupervised flow estimation in the autonomous driving domain.
Methods
SemARFlow builds upon the ARFlow architecture but introduces several key semantic-aware components:
- Semantic Encoder: Semantic segmentation masks are fed into a parallel encoder alongside image features. These semantic features are then fused with image features at multiple resolutions within the encoder, helping to delineate objects and regions even in challenging visual conditions.
- Learned Upsampler: Instead of simple interpolation, SemARFlow employs a learned upsampler module. This module uses semantic information to refine the flow output, specifically sharpening boundaries around objects where appearance can be ambiguous.
- Semantic Augmentation: A novel self-supervision technique is introduced. This involves "carving out" objects from different samples based on their semantic masks and pasting them into new scenes as occluders. This creates realistic, challenging scenarios (e.g., newly occluded areas) that the network learns from, guided by the first-pass flow estimation. This is applied in a third pass of the network.
- Boundary-Aware Smoothness Loss (Explored): While not used in the final model, the authors explored using semantic boundaries to create a more accurate smoothness loss, which is typically applied to penalize abrupt motion changes. They found that their learned upsampler made this explicit smoothness loss detrimental.
Datasets
- Training: KITTI raw sequences, Cityscapes sequences.
- Validation/Testing: KITTI-2015 multi-view extension, KITTI-2012, KITTI-2015.
Key Insights and Ideas
- Semantics as a powerful constraint: The core idea is that semantic information, which is more readily available than optical flow labels, can significantly constrain and improve unsupervised flow estimation, especially in challenging scenarios.
- Injecting semantics at multiple stages: The authors demonstrate the benefit of injecting semantic information not only early in the encoder but also later in the upsampling stage for refinement.
- Realistic self-supervision via semantic augmentation: Creating occlusions with semantically meaningful objects (rather than just noise or superpixels) provides a more effective and realistic self-supervision signal for learning flow in difficult regions.
- Learned upsamplers are key: The learned upsampler, guided by semantics, is crucial for achieving sharp flow boundaries, outperforming simpler interpolation methods.
- Smoothness loss can be counterproductive: The authors found that an explicit smoothness loss can interfere with the learned upsampler's ability to adapt to motion boundaries, suggesting that learned components can implicitly handle smoothness.
Key Results
- KITTI-2015 Test Error Reduction: SemARFlow reduced the KITTI-2015 optical flow test error from 11.80% (ARFlow baseline) to 8.38%, outperforming the previous state-of-the-art UPFlow (9.38%).
- Improved Boundary Accuracy: Qualitative results show significantly sharper flow boundaries around objects, particularly vehicles and poles.
- Enhanced Generalization: Models trained on Cityscapes and tested on KITTI showed improved generalization when semantic inputs were used.
- Semantic Class Performance: The method showed improvements across all semantic classes, with car flow accounting for a significant portion of the overall improvement.
Limitations and Future Work
- Limitations:
- The semantic segmentation masks are estimated by an off-the-shelf model, meaning their accuracy is a prerequisite.
- The current semantic maps can merge instances of the same class (e.g., multiple cars), leading to less accurate flow boundaries between them.
- Semantic consistency loss, while explored, was not found to be very helpful due to the categorical nature of semantic inputs and issues with occlusion regions.
- Evaluating semantic-specific improvements is challenging due to limited ground-truth labels for dynamic objects like people and bicycles.
- Future Work:
- Using instance-level semantics for more precise object masks.
- Exploring better ways to handle semantic boundaries and image edges in conjunction.
- Developing more informative evaluation metrics for semantic-aware optical flow.
- Investigating the use of learned initial flow priors conditioned on semantics to further improve decoder performance.
Summary updated