Accurately estimating depth in 360-degree imagery is crucial for virtual reality, autonomous navigation, and immersive media applications. However, while monocular depth estimation has seen a "foundation model" revolution recently with models like Depth Anything, these successes are largely confined to standard perspective (pinhole) images.
Researchers have developed a new framework called Depth Anywhere that significantly improves 360-degree monocular depth estimation. By using a "teacher-student" distillation process, they leverage powerful perspective-view depth models to generate pseudo-labels for massive amounts of unlabeled panoramic data, effectively bridging the data gap that has long hindered 360° computer vision.
The Challenge of 360° Vision
360-degree imagery faces two major hurdles when applying standard depth estimation techniques:
- Geometric Distortion: 360° images are typically stored in equirectangular formats (similar to a flat map of the Earth), which introduces extreme stretching at the poles that breaks standard perspective models.
- Data Scarcity: Labeled 360° depth datasets are roughly 170 times smaller than their perspective counterparts. It is incredibly difficult and expensive to capture high-quality ground truth depth for full panoramic scenes.
Methodology: Distilling Perspective Knowledge
To overcome these challenges, the authors propose a semi-supervised pipeline that turns the abundance of unlabeled 360° data into a training goldmine.
- Perspective Distillation: Instead of trying to find more labeled data, the framework uses a State-of-the-Art (SOTA) perspective model (like Depth Anything) as a "teacher."
- The Cube Face Trick: To make the 360° images "readable" for the teacher, the panorama is projected onto the six faces of a cube. Each face has a 90° field of view, which closely mimics the perspective images the teacher was trained on.
- Random Rotation Processing: If the model only uses static cube faces, it develops "cube artifacts" (visible seams at the edges). To solve this, the researchers randomly rotate the 360° sphere before projecting it to the cube. This ensures the model learns a continuous, global understanding of the scene rather than just six disconnected patches.
- Offline Masking: Segment Anything (SAM) and Grounding DINO are used to automatically mask out "invalid" regions in unlabeled data, such as the sky (which has infinite depth) and camera watermarks, preventing the model from learning incorrect depth cues.
- Joint Training: The final "student" model is trained on a 50/50 mix of actual labeled data and the teacher-generated pseudo-labels, using an affine-invariant loss that focuses on relative depth rather than absolute metric distance.
Key Insights and Results
The framework was tested on baseline models like UniFuse and BiFuse++ using standard benchmarks (Matterport3D, Stanford2D3D, Structured3D) and unlabeled datasets (SpatialAudioGen).
The "Zero-Shot" Powerhouse: The most striking insight is how well this method generalizes. By distilling knowledge from foundation models, the 360° student model performs exceptionally well on datasets it has never seen before. When a model trained on Matterport3D was tested on the Stanford2D3D dataset (a "zero-shot" scenario), the error dropped significantly. For example, BiFuse++ improved its Absolute Relative Error (Abs Rel) from 0.090 to 0.082 when using the proposed distillation. On the Matterport3D benchmark itself, adding the pipeline improved the Abs Rel of UniFuse from 0.102 to 0.089.
Rotation is the Secret Sauce: Without the random rotation step, the distillation process fails to capture the relationship between cube faces, leading to disjointed depth maps. Adding rotation forces the model to see the "whole" scene through different "windows." Visually, the models trained with this method produce much sharper edges and more consistent depth across the entire 360° field, successfully avoiding the "seam" artifacts common in previous cube-based methods.
Quality over Quantity: The authors found that a 1:1 ratio of ground truth to pseudo-labels was optimal. Simply flooding the model with pseudo-labels can actually hurt performance if the teacher's predictions aren't perfectly accurate.
Limitations and Future Work
Despite the success, the authors note a few areas for improvement. The student model is inherently limited by the teacher's quality; if the perspective foundation model makes a mistake (e.g., misidentifying a mirror as a hole in the wall), the 360° model will likely inherit that error. Additionally, the training process is sensitive to data cleaning, and running a high-end perspective model to generate pseudo-labels for millions of patches is computationally expensive offline.
Future research could involve exploring more complex camera projections beyond the cube map or integrating temporal consistency for 360° video depth estimation.
Summary updated