Introduction
Estimating the 3D structure of a scene alongside camera movement from video—a task known as Structure from Motion (SfM)—remains a fundamental challenge in computer vision. Traditional methods like COLMAP often struggle with "difficult" footage characterized by motion blur, textureless surfaces, or dynamic objects. While recent deep-learning approaches offer more robustness, they frequently suffer from poor generalization to new environments and "drift," where errors accumulate over time, leading to inconsistent global geometry.
The Globally Consistent Video Depth (GCVD) framework addresses these issues by optimizing model parameters directly on a test video. This test-time training approach ensures that the model adapts to the specific visual characteristics of the input while maintaining long-term consistency through a hybrid architecture.
Methodology: A Hybrid Optimization Pipeline
GCVD bridges the gap between the robustness of deep learning and the geometric rigor of traditional SfM. The pipeline is divided into three distinct stages designed for both accuracy and computational efficiency.
1. Pre-processing and Pose Graph Generation
The system first computes dense optical flow and applies semantic masks to exclude dynamic objects. It identifies "keyframes" based on camera displacement and constructs a pose graph. To prevent drift, a CNN-based encoder identifies non-sequential but visually similar frames to create "loop closure" edges, ensuring the camera path remains globally consistent.
2. Keyframe-based 3D Optimization
Rather than optimizing every frame simultaneously, GCVD initially focuses on the keyframes. It performs a "pose-only bundle adjustment," a lightweight optimization that aligns camera poses globally. This avoids the prohibitive computational cost of dense optimization across the entire video sequence.
3. Joint Optimization and Refinement
In the final stage, the refined keyframe poses act as anchors. The system then estimates depth and pose for all remaining frames. The optimization is guided by a combination of photometric loss, optical flow loss, and a depth gradient loss that preserves structural priors from pre-trained models like MiDaS.
Experimental Results
The authors evaluated GCVD across three challenging real-world datasets: 7-Scenes (indoor Kinect sequences), TUM RGB-D (handheld camera with abrupt motions), and EuRoC (drone footage in large environments).
Accuracy and Robustness
On the 7-Scenes dataset, GCVD demonstrated a nearly 20% improvement in depth and pose accuracy over state-of-the-art methods like CVD2 and Deep3D. Notably, in TUM RGB-D sequences where traditional tools like COLMAP failed due to tracking loss, GCVD remained stable, proving its robustness to challenging visual conditions.
Efficiency
As shown in the runtime comparison, GCVD is significantly more efficient than its closest globally consistent competitor, CVD2. For a standard 50-frame sequence, GCVD operates approximately 5.8x faster. While it is slightly slower than local-only methods like Deep3D for very long videos, it provides the critical global consistency that those methods lack.
Conclusion and Future Work
GCVD represents a significant step forward in video-based 3D reconstruction by successfully integrating traditional pose graphs into a learning-based optimization loop. By leveraging sparsity through keyframe selection, it achieves high accuracy without the massive overhead typically associated with global consistency.
Current limitations include a heavy reliance on the quality of the underlying optical flow model and the assumption of fixed camera intrinsics. Future research will focus on end-to-end learning of camera parameters and improving flow estimation to handle a broader range of consumer-grade video content.
Summary updated