Depth Anywhere: Enhancing 360 Monocular Depth Estimation via Perspective Distillation and Unlabeled Data Augmentation

Ning-Hsu Wang, Yu-Lun Liu · OpenReview

Abstract

Accurately estimating depth in 360-degree imagery is crucial for virtual reality, autonomous navigation, and immersive media applications. Existing depth estimation methods designed for perspective-view imagery fail when applied to 360-degree images due to different camera projections and distortions, whereas 360-degree methods perform inferior due to the lack of labeled data pairs. We propose a new depth estimation framework that utilizes unlabeled 360-degree data effectively. Our approach uses state-of-the-art perspective depth estimation models as teacher models to generate pseudo labels through a six-face cube projection technique, enabling efficient labeling of depth in 360-degree images. This method leverages the increasing availability of large datasets. Our approach includes two main stages: offline mask generation for invalid regions and an online semi-supervised joint training regime. We tested our approach on benchmark datasets such as Matterport3D and Stanford2D3D, showing significant improvements in depth estimation accuracy, particularly in zero-shot scenarios. Our proposed training pipeline can enhance any 360 monocular depth estimator and demonstrates effective knowledge transfer across different camera projections and data types.

Introduction

Estimating depth from a single image is a cornerstone of computer vision, but 360-degree (omnidirectional) images present unique challenges. First, there is a Geometry Gap: most AI models are trained on standard perspective images. 360 images use equirectangular projection, which introduces massive distortions that break standard models. Second, there is a Data Drought: while millions of labeled perspective images exist, labeled 360-degree datasets are roughly 200 times smaller. Current 360-specific models struggle to generalize, while powerful perspective foundation models fail when fed distorted panoramas.

Methodology

The proposed "Depth Anywhere" framework bridges this gap by using a high-performing perspective model as a "Teacher" to train a 360-degree "Student" model through a novel distillation process.

Overview of the Depth Anywhere training pipeline, featuring supervised training on labeled data and distillation from a perspective teacher model using random rotations on unlabeled data.

Perspective Distillation via Cube Maps

Instead of feeding distorted panoramas directly to the Teacher, the framework projects 360 images onto the six faces of a cube. Each face resembles a standard perspective image, which the Teacher model (e.g., Depth Anything) can process accurately to generate pseudo-labels.

Random Rotation Processing

A key contribution is the use of random rotations. Training directly on static cube faces often leads to "cube artifacts" or seams at the edges. By randomly rotating the 360-degree sphere before projecting it to the cube, the model is forced to learn a globally consistent depth map, effectively smoothing out boundaries and improving geometric understanding.

Data Cleaning and Joint Training

The pipeline utilizes Grounded-Segment-Anything to automatically mask out invalid regions such as the sky or camera watermarks. The Student model is then trained using a semi-supervised joint regime, balancing actual labeled data with the Teacher’s pseudo-labeled unlabeled data.

Experimental Results

The study utilized labeled datasets like Matterport3D (M) and Stanford2D3D (SF), alongside unlabeled data from Structured3D (ST) and SpatialAudioGen (SP). Evaluation focused on "zero-shot" settings to measure true generalization.

Qualitative comparison of depth estimation and 3D reconstruction between the baseline BiFuse++ and the proposed method (p), showing reduced error and sharper boundaries.

Quantitative and Qualitative Performance

The Depth Anywhere pipeline consistently improved existing 360 models like UniFuse and BiFuse++. On the Stanford2D3D benchmark, the method improved the Absolute Relative Error (Abs Rel) of the BiFuse++ model from 0.107 to 0.082. Qualitatively, the models produced cleaner depth maps with fewer artifacts and better preservation of sharp object boundaries compared to models trained only on limited labeled data.

Conclusion

Depth Anywhere demonstrates that foundation models trained on perspective data can be effectively distilled into the omnidirectional domain. By leveraging unlabeled data and a rotation-invariant training strategy, the framework significantly boosts the accuracy and generalization of 360-degree monocular depth estimation, providing a model-agnostic solution for various immersive applications.

Summary updated

BibTeX
@inproceedings{wang2024depth,
  author = {Ning-Hsu Wang and Yu-Lun Liu},
  title = {{Depth Anywhere: Enhancing 360 Monocular Depth Estimation via Perspective Distillation and Unlabeled Data Augmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=VzoyBrqJ4O},
}
Figure