PanoContext-Former: Panoramic Total Scene Understanding with a Transformer

Yuan Dong, Chuan Fang, Liefeng Bo, Zilong Dong, Ping Tan · DOI

Introduction

Understanding a 3D indoor scene from a single image is a fundamental challenge in computer vision, requiring the simultaneous recovery of room layouts, 3D object bounding boxes, and detailed object shapes. While standard perspective images offer a limited field of view, panoramic images provide a full 360° perspective but introduce significant geometric distortions. PanoContext-Former addresses these challenges through a unified transformer-based framework that leverages global context to achieve "total" scene understanding.

Methodology

The PanoContext-Former pipeline integrates three primary components to bridge the gap between layout estimation and object reconstruction:

  1. Layout Estimation Network (LEN): This module utilizes Graph Convolutional Networks (GCNs) to map the panorama to a 3D triangle mesh representing room boundaries. It enhances accuracy by fusing equirectangular features with perspective crops of the ceiling and floor.
  2. 3D Object Detection & Mesh Generation (ODN): To mitigate 2D distortion, the system estimates a monocular depth map to generate a 3D point cloud. A point-based detector then identifies objects and predicts "shape codes"—compact representations of 3D geometry learned via a pre-trained Occupancy Network (ONet) autoencoder.
  3. Transformer-based Context Module: Acting as the system's core, this module processes tokens from the layout, global image, point cloud, and detected objects. Using Multi-Head Self-Attention (MHSA), it learns spatial correlations, such as ensuring furniture is correctly aligned with walls.
Qualitative results showing 360° panoramas with 3D detections (left) and the resulting holistic 3D room reconstructions (right).

A critical innovation is the Physical Violation Loss, a geometric regularizer that penalizes physically impossible configurations, such as objects intersecting walls or floating outside the room layout. This ensures the final 3D reconstruction is physically plausible without requiring rigid manual constraints like the Manhattan World assumption.

Experimental Setup

The model was evaluated on two key benchmarks:

  • iGibson-Synthetic: A large-scale synthetic dataset for indoor scene understanding.
  • ReplicaPano: A new dataset introduced by the authors, consisting of 2,700 photo-realistic panoramas rendered from high-fidelity real-world scans (Replica dataset), providing accurate 3D annotations for layouts, boxes, and meshes.

Results

PanoContext-Former demonstrates state-of-the-art performance across multiple metrics. On the iGibson dataset, it achieved a mean Average Precision (mAP) of 67.35%, significantly outperforming previous holistic methods like DeepPanoContext (52.69%) and Total3D (37.45%). Layout accuracy also saw substantial gains, reaching a 3D-IoU of 92.04% on synthetic data and 84.58% on the real-world ReplicaPano dataset. Qualitative analysis confirms that the model produces cleaner 3D reconstructions with correctly oriented furniture properly contained within room boundaries.

Conclusion

PanoContext-Former represents a significant advancement in holistic scene understanding by moving away from fragmented sub-tasks toward a unified, context-aware system. While challenges remain regarding the detection of very thin structures and handling heavy occlusions in cluttered environments, the integration of global attention and physical constraints provides a robust foundation for future research in 3D vision.

Summary updated

BibTeX
@misc{dong2023panocontext,
  author = {Yuan Dong and Chuan Fang and Liefeng Bo and Zilong Dong and Ping Tan},
  title = {{PanoContext-Former: Panoramic Total Scene Understanding with a Transformer}},
  year = {2023},
  eprint = {2305.12497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12497},
}
Figure