[Paper Review] PanoFormer: Panorama Transformer for Indoor 360 Depth Estimation
PanoFormer introduces the first panorama-specific Transformer for indoor 360° depth estimation, using tangent-patch tokenization and learnable token flows to mitigate spherical distortions and enhance geometric structure perception. It achieves state-of-the-art performance on Stanford2D3D, outperforming prior methods by significant margins in RMSE, P-RMSE, and LRCE, and generalizes effectively to semantic segmentation.
Existing panoramic depth estimation methods based on convolutional neural networks (CNNs) focus on removing panoramic distortions, failing to perceive panoramic structures efficiently due to the fixed receptive field in CNNs. This paper proposes the panorama transformer (named PanoFormer) to estimate the depth in panorama images, with tangent patches from spherical domain, learnable token flows, and panorama specific metrics. In particular, we divide patches on the spherical tangent domain into tokens to reduce the negative effect of panoramic distortions. Since the geometric structures are essential for depth estimation, a self-attention module is redesigned with an additional learnable token flow. In addition, considering the characteristic of the spherical domain, we present two panorama-specific metrics to comprehensively evaluate the panoramic depth estimation models' performance. Extensive experiments demonstrate that our approach significantly outperforms the state-of-the-art (SOTA) methods. Furthermore, the proposed method can be effectively extended to solve semantic panorama segmentation, a similar pixel2pixel task. Code will be available.
Motivation & Objective
- To address the limitations of CNN-based methods in handling geometric distortions and poor structure perception in panoramic depth estimation.
- To design a Transformer architecture tailored for spherical images, enabling better perception of panoramic structures despite equirectangular projection distortions.
- To introduce novel evaluation metrics—P-RMSE and LRCE—that account for polar region errors and boundary consistency in panoramic depth maps.
- To demonstrate the extensibility of the proposed architecture to other pixel-to-pixel tasks, such as semantic segmentation, with minimal modification.
Proposed method
- Divides the spherical panorama into tangent patches on the tangent domain to reduce the negative impact of equirectangular projection distortions.
- Introduces a Spherical Token Locating Model (STLM) to map token positions from the equirectangular domain to the tangent domain for distortion-aware sampling.
- Redesigns the self-attention mechanism with learnable weight parameters to guide token flow, enabling dynamic adaptation to object structures.
- Proposes a Panoramic Structure-guided Transformer (PST) block that replaces standard Transformer blocks in a hierarchical encoder-decoder architecture.
- Employs relative position embeddings based on central tokens to improve attention localization in the spherical domain.
- Introduces two novel metrics—Pole Root Mean Square Error (P-RMSE) and Left-Right Consistency Error (LRCE)—to evaluate performance on polar regions and seam boundaries.
Experimental results
Research questions
- RQ1Can a Transformer-based architecture effectively mitigate geometric distortions in 360° panoramic depth estimation?
- RQ2How can self-attention mechanisms be adapted to perceive complex geometric structures in distorted spherical images?
- RQ3To what extent do novel metrics like P-RMSE and LRCE provide a more comprehensive evaluation of panoramic depth estimation models compared to standard metrics?
- RQ4Can the proposed PST block be effectively transferred to other dense prediction tasks in panoramic imagery, such as semantic segmentation?
Key findings
- PanoFormer achieves a test RMSE of 0.3366 on the Stanford2D3D dataset, representing a 49.8% improvement over the CNN-based baseline (0.6704).
- The model reduces P-RMSE from 0.2258 (baseline) to 0.1793 and LRCE from 0.2733 to 0.1784, demonstrating superior performance on polar and boundary regions.
- Ablation studies confirm that the combination of tangent patches and learnable token flow yields the greatest performance gain, with a 21% reduction in RMSE compared to the standard attention baseline.
- The PST block significantly improves geometric structure perception, as shown by qualitative results that exhibit more accurate depth estimation on deformed objects like sofas.
- The model generalizes effectively to semantic segmentation, achieving 48.9% mIoU and 64.5% mAcc on Stanford2D3D, surpassing the previous SOTA by 5.6 percentage points in mIoU.
- The proposed P-RMSE and LRCE metrics effectively capture performance degradation in high-distortion regions and seam areas, which standard metrics fail to detect.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.