A Compacted Structure for Cross-domain learning on Monocular Depth and Flow Estimation

Yu Chen, Xu Cao, Xiaoyi Lin, Baoru Huang, Xiao-Yun Zhou, Jian-Qing Zheng, Guang-Zhong YangarXiv 2022 · DOI

Abstract

This paper introduces a novel multi-task learning framework designed to optimize monocular depth and optical flow estimation through feature-level collaboration. By implementing bidirectional latent information exchange (D2F and F2D) and a dual-head motion decomposition strategy, the model achieves state-of-the-art unsupervised performance on the KITTI dataset. The architecture remains compact while effectively resolving geometric ambiguities in challenging environmental conditions.

Introduction

In the field of robotic vision, understanding 3D scenes involves two fundamental tasks: depth estimation and optical flow prediction. While these tasks are geometrically coupled, most existing deep learning models treat them as isolated problems or link them only through loss functions during training. This paper proposes a "Compacted Structure" that bridges this gap by allowing the network to share internal representations (latent features) between the depth and flow branches, helping the model resolve ambiguities such as distinguishing moving objects from static backgrounds in low-contrast environments.

Methodology

The proposed framework introduces three primary innovations to enhance cross-domain learning:

Bidirectional Latent Exchange (D2F & F2D)

The core of the architecture is the physical connection between the decoder layers of the two tasks.

  • Depth-to-Flow (D2F): This mechanism provides the flow branch with geometric context, enabling it to understand the 3D structure of the scene to better predict pixel movement.
  • Flow-to-Depth (F2D): This utilizes "pixel shift" information from the flow branch to refine depth estimates, essentially acting as a temporary stereo-vision system for the monocular input.
Overview of the proposed architecture (a) and the EMA-based training/testing strategy (b).

Dual-Head Mechanism

To handle complex motion fields, the model employs a "divide-and-conquer" approach. It uses two separate "heads" to disentangle rigid motion (static background movement caused by camera motion) from non-rigid motion (independently moving objects like vehicles or pedestrians). This decomposition simplifies the learning task for each branch.

Exponential Moving Average (EMA) Training

Multi-task learning can be unstable, as errors in one branch can negatively impact the other. To mitigate this, the authors adopt an EMA (or "Mean Teacher") approach. During training, a "teacher" model's weights are maintained as a stabilized, moving average of the "student" model, providing more robust and consistent targets for prediction.

Detailed schematic of the D2F and F2D mechanisms, showing how features are interchanged between the depth and flow decoders.

Experiments and Results

The model was evaluated using the KITTI dataset, the industry standard for autonomous driving benchmarks. Training was conducted unsupervised on video sequences without ground truth depth or flow.

Quantitative Performance

Ablation studies confirmed that every component added significant value. The full model achieved an Absolute Relative Error (abs rel) of 0.112 for depth estimation, outperforming several complex multi-task competitors. For optical flow, the model reduced the Endpoint Error (EPE) from a baseline of 8.20 to 6.84, with specific configurations reaching as low as 6.23.

Qualitative Insights

A key finding was the model's performance in "dark tunnel" scenarios. The dual-head mechanism significantly improved the detection of moving vehicles in these challenging conditions where standard photometric methods often fail due to low contrast. Furthermore, the D2F mechanism helped the depth branch distinguish road signs from background buildings by leveraging the distinct flow patterns generated by closer objects.

Discussion and Future Work

Despite the added complexity of the exchange blocks, the model remains efficient, containing approximately 19.55 million parameters and running at roughly 7.7 to 8.1 FPS. While this approaches real-time performance, further optimization is required for high-speed applications like agile drone flight. Future work may involve extending this cross-domain approach to visual odometry or integrating stereo constraints to further boost the F2D refinement process.

Summary updated

BibTeX
@misc{chen2022compacted,
  author = {Yu Chen and Xu Cao and Xiaoyi Lin and Baoru Huang and Xiao-Yun Zhou and Jian-Qing Zheng and Guang-Zhong Yang},
  title = {{A Compacted Structure for Cross-domain learning on Monocular Depth and Flow Estimation}},
  year = {2022},
  eprint = {2208.11993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.11993},
}
Figure