Self-Supervised Learning With Geometric Constraints in Monocular Video: Connecting Flow, Depth, and Camera

Yuhua Chen, Cordelia Schmid, Cristian Sminchisescu

Abstract

We present GLNet, a self-supervised framework for learning depth, optical flow, camera pose and intrinsic parameters from monocular video - addressing the difficulty of acquiring realistic ground-truth for such tasks. We propose three contributions: 1) we design new loss functions that capture multiple geometric constraints (eg. epipolar geometry) as well as adaptive photometric loss that supports multiple moving objects, rigid and non-rigid, 2) we extend the model such that it predicts camera intrinsics, making it applicable to uncalibrated video, and 3) we propose several online refinement strategies that rely on the symmetry of our self-supervised loss in training and testing, in particular optimizing model parameters and/or the output of different tasks, leveraging their mutual interactions. The idea of jointly optimizing the system output, under all geometric and photometric constraints can be viewed as a dense generalization of classical bundle adjustment. We demonstrate the effectiveness of our method on KITTI and Cityscapes, where we outperform previous self-supervised approaches on multiple tasks. We also show good generalization for transfer learning.

Introduction

Estimating the 3D structure of a scene from a single moving camera (monocular video) is a fundamental challenge in computer vision, essential for autonomous driving and robotics. Traditionally, this required either classical geometry (Structure-from-Motion), which is accurate but sparse, or supervised deep learning, which produces dense results but requires massive amounts of expensive ground-truth data like LIDAR scans.

Existing self-supervised methods typically rely on photometric consistency—the idea that a pixel should look the same from different viewpoints. However, these methods often struggle with moving objects and ignore deeper geometric rules. GLNet (Geometric Learning Network) addresses these limitations by enforcing the "laws of physics" through explicit geometric constraints, bridging classical computer vision with deep learning.

Methodology

GLNet decomposes the problem into three specialized sub-networks: DepthNet ($D_\theta$), CameraNet ($C_\alpha$), and FlowNet ($F_\delta$). Notably, CameraNet predicts camera intrinsics ($K$) in addition to pose, making the framework applicable to uncalibrated video sources such as handheld phone footage.

The GLNet framework integrates depth, camera, and flow networks, optimized via adaptive photometric and geometric consistency losses.

The framework's performance is driven by several novel loss functions:

  • Adaptive Photometric Loss: Instead of a one-size-fits-all approach, this loss automatically selects the best explanation for a pixel's movement. It distinguishes between rigid motion (following the camera) and non-rigid motion (moving cars or pedestrians).
  • Multi-view 3D Structure Consistency: This ensures that 3D points predicted from consecutive frames are spatially consistent when transformed into a common coordinate system.
  • Epipolar Constraint Loss: A classic geometry rule turned into a training signal, forcing predicted optical flow to align with the epipolar lines dictated by camera motion.

Online Refinement and Inference

A key innovation of GLNet is the symmetry between training and testing. Since the loss functions are self-supervised and do not require ground truth, the model can continue to refine its predictions during the inference phase. The authors propose Parameter Finetuning (PFT) and Output Finetuning (OFT). OFT optimizes the final predictions directly, providing a significant speedup over traditional parameter tuning and acting as a dense generalization of classical bundle adjustment.

Refinement strategies like PFT and OFT significantly reduce the Absolute Relative Error (Abs Rel) during inference iterations.

Experimental Results

The model was evaluated on standard benchmarks including KITTI and Cityscapes, as well as uncalibrated YouTube videos.

  • Depth Estimation: On the KITTI benchmark, GLNet achieved an Absolute Relative Error (Abs Rel) of 0.099, significantly outperforming previous self-supervised leaders like GeoNet (0.155) and rivaling some supervised methods.
  • Optical Flow: The integration of geometric constraints reduced the Average End-Point Error (EPE) on KITTI 2015 from a baseline of 12.28 down to 8.35.
  • Generalization: When trained on KITTI and tested on "in the wild" YouTube footage, the model successfully reconstructed 3D scenes, proving its ability to handle unknown camera settings through predicted intrinsics.

Conclusion

GLNet demonstrates that incorporating rigorous geometric constraints into self-supervised frameworks can yield state-of-the-art results for monocular video understanding. By treating inference as a continuous optimization process and enabling application to uncalibrated video, GLNet provides a robust and versatile solution for dense 3D reconstruction without the need for expensive ground-truth labels.

Summary updated

BibTeX
@misc{chen2019self,
  author = {Yuhua Chen and Cordelia Schmid and Cristian Sminchisescu},
  title = {{Self-Supervised Learning With Geometric Constraints in Monocular Video: Connecting Flow, Depth, and Camera}},
  year = {2019},
  eprint = {1907.05820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.05820},
}
Figure