UniFuse: Unidirectional Fusion for 360° Panorama Depth Estimation

Hualie Jiang, Zhe Sheng, Siyu Zhu, Zilong Dong, Rui Huang

TL;DR

Estimating depth from 360° panoramas is challenging due to the severe distortion in equirectangular projections and the edge discontinuities in cubemaps. This paper introduces UniFuse, a highly efficient unidirectional fusion framework that feeds distortion-free cubemap features into an equirectangular network only during the decoding stage. The result is a simpler, faster model that achieves state-of-the-art depth estimation accuracy while drastically reducing computational complexity compared to existing bidirectional approaches.

What Problem Does This Paper Address?

360° spherical panoramas are incredibly useful for 3D reconstruction, robotics, and VR because they capture a complete field-of-view in a single shot. However, feeding spherical data into standard Convolutional Neural Networks (CNNs) designed for flat 2D images presents a geometric challenge.

Researchers typically use two representations:

  1. Equirectangular Projection (ERP): Think of a standard world map. It provides a complete view but suffers from severe stretching and distortion near the poles.
  2. Cubemap Projection (CMP): The sphere is projected onto the six faces of an inscribed cube. This eliminates distortion but introduces artificial discontinuities (seams) at the edges of the cube faces, and each face has a limited field-of-view.

Previous state-of-the-art methods, like BiFuse, tried to get the best of both worlds by running two parallel encoder-decoder networks (one for ERP, one for CMP) and fusing them bidirectionally. However, this is computationally massive. Furthermore, forcing the network to optimize a cubemap depth map distracts it from its ultimate goal: producing a single, high-quality equirectangular depth map.

Methods

The authors propose UniFuse, which simplifies the architecture by using a unidirectional fusion strategy.

Instead of two full U-Nets, UniFuse uses two encoders (one for ERP, one for CMP) but only one decoder (for ERP). The network extracts features from both projections, but the CMP features are only fed into the ERP branch at the decoding stage via skip connections.

To make this fusion effective, the authors designed a novel module called CEE (Cubemap to Enhance Equirectangular):

  • Projection: It first reprojects the CMP features back into the equirectangular grid.
  • Residual Modulation: It applies a ResNet-inspired residual block to smooth out the cracks and discontinuities at the cubemap boundaries.
  • Channel Attention: After concatenating the smoothed CMP features with the ERP features, it uses a Squeeze-and-Excitation (SE) block to adaptively weight the most important feature channels before passing them up the decoder.

Datasets

The model was trained and evaluated on four popular datasets:

  • Matterport3D: A large, real-world dataset with raw depth captured by physical sensors (though missing top/bottom data).
  • Stanford2D3D: A real-world dataset where depth is constructed from 3D models.
  • 3D60 & PanoSUNCG: Synthetic/virtual datasets rendered from 3D models.

Key Insights and Ideas

  • Simplicity outperforms complexity: Bidirectional fusion is overkill. Because the final desired output is an equirectangular depth map, using the cubemap strictly as a supporting feature during decoding is both faster and more accurate.
  • Late fusion preserves pre-training: Fusing features at the encoder stage (as previous methods did) disturbs the ImageNet pre-trained weights of the backbone. Fusing at the decoder stage leverages well-encoded, mature features.
  • Smart modules beat brute-force padding: Previous methods used computationally expensive "spherical padding" to fix cubemap edge seams. UniFuse shows that a simple residual block, guided by continuous ERP features, can effectively "fill in the cracks" of cubemap boundaries with much less overhead.
  • Better generalization: Because UniFuse is less complex, it overfits less. When trained on Matterport3D and tested zero-shot on Stanford2D3D, UniFuse generalized significantly better than heavier baseline models.

Key Results

  • State-of-the-Art Accuracy: UniFuse achieved SOTA on all four datasets. On the highly realistic Matterport3D dataset, it slashed the Absolute Relative Error (Abs Rel) by nearly half compared to BiFuse (dropping from 0.2048 to 0.1063) and improved the tightest accuracy metric ($\delta < 1.25$) by over 5%.
  • Massive Efficiency Gains: UniFuse (using a ResNet-18 backbone) requires only ~30M parameters and runs in 24.1ms per frame. The previous SOTA, BiFuse (ResNet-50), requires 253M parameters and takes 1125ms per frame.
  • Mobile Viability: By swapping the backbone to MobileNetV2, UniFuse drops to just 7.35M parameters while still maintaining real-time inference and outperforming older baselines.

Limitations and Future Work

The authors note a fascinating limitation regarding synthetic datasets: virtual datasets like 3D60 might actually be "too easy" due to rendering artifacts. For example, in some synthetic renders, scenes naturally get darker the further away they are. The network can inadvertently learn to use brightness as a shortcut for depth, which fails in the real world.

For future work, the authors suggest exploring the deployment of these lightweight, real-time models on practical edge devices, such as mobile robots and AR/VR headsets, where computational budgets are strictly limited.

Summary updated

Abstract

Learning depth from spherical panoramas is becoming a popular research topic because a panorama has a full field-of-view of the environment and provides a relatively complete description of a scene. However, applying well-studied CNNs for perspective images to the standard representation of spherical panoramas, i.e., the equirectangular projection, is suboptimal, as it becomes distorted towards the poles. Another representation is the cubemap projection, which is distortion-free but discontinued on edges and limited in the field-of-view. This letter introduces a new framework to fuse features from the two projections, unidirectionally feeding the cubemap features to the equirectangular features only at the decoding stage. Unlike the recent bidirectional fusion approach operating at both the encoding and decoding stages, our fusion scheme is much more efficient. Besides, we also designed a more effective fusion module for our fusion scheme. Experiments verify the effectiveness of our proposed fusion strategy and module, and our model achieves state-of-the-art performance on four popular datasets. Additional experiments show that our model also has the advantages of model complexity and generalization capability.
BibTeX
@article{jiang2021unifuse,
  author = {Hualie Jiang and Zhe Sheng and Siyu Zhu and Zilong Dong and Rui Huang},
  title = {{UniFuse: Unidirectional Fusion for 360° Panorama Depth Estimation}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  url = {https://openreview.net/forum?id=ykRiJqkBcHD},
}

Loading related content...

Figure