Abstract
We propose an algorithm to predict room layout from a single image that generalizes across panoramas and perspective images, cuboid layouts and more general layouts (e.g. "L"-shape room). Our method operates directly on the panoramic image, rather than decomposing into perspective images as do recent works. Our network architecture is similar to that of RoomNet, but we show improvements due to aligning the image based on vanishing points, predicting multiple layout elements (corners, boundaries, size and translation), and fitting a constrained Manhattan layout to the resulting predictions. Our method compares well in speed and accuracy to other existing work on panoramas, achieves among the best accuracy for perspective images, and can handle both cuboid-shaped and more general Manhattan layouts.
Introduction
Reconstructing the 3D geometry of an indoor space from a single image is a foundational challenge in computer vision with major implications for robotics and AR/VR. Most existing methods suffer from two main limitations: geometric simplicity and input constraints. Many models assume a simple cuboid ("box") shape, failing on real-world "L-shaped" or complex geometries. Furthermore, methods designed for perspective images often struggle with panoramas, frequently requiring expensive "unwarping" into multiple perspective views that introduce artifacts. LayoutNet bridges these gaps by operating directly on equirectangular projections and handling non-cuboid Manhattan layouts.
Methodology
LayoutNet utilizes a three-step pipeline to transform a single RGB image into a 3D model.
- Panoramic Alignment: The system detects vanishing points to align the panorama, ensuring the floor is level. This makes wall-wall boundaries perfectly vertical, simplifying the prediction task.
- Deep Network Architecture: An encoder-decoder CNN processes a 6-channel input consisting of the RGB image and a "Manhattan line map." A dual-branch decoder jointly predicts 2D probability maps for layout boundaries and corners. During training, a 3D regressor branch helps the encoder learn geometrically meaningful features.
- 3D Layout Optimization: A scoring function fits a Manhattan-constrained 3D model to the predicted 2D maps, ensuring all walls meet at 90-degree angles while aligning with detected structural features.
Evaluation and Datasets
The performance of LayoutNet was validated across three major benchmarks:
- PanoContext: 500 annotated cuboid layouts in panoramas.
- Stanford 2D-3D: 1,413 panoramas. The authors extended this dataset with new 3D layout annotations for 571 panoramas.
- LSUN & Hedau: Standard datasets for perspective room layout estimation.
Key Insights
- Direct Processing: Operating directly on panoramas preserves global context and is significantly faster than decomposing images into perspective crops.
- Multitask Synergy: Jointly predicting corners (precise anchors) and boundaries (structural flow) yields superior results compared to isolated predictions.
- Handling Complexity: The model detects the "strength" of vertical boundaries to automatically switch from a cuboid model to more complex "L-shape" geometries when necessary.
- Geometric Priors: Pre-aligning the image based on vanishing points acts as a powerful prior, reducing the search space for the neural network.
Key Results
LayoutNet achieved state-of-the-art results on the PanoContext dataset with a 3D IoU of 74.48%, a substantial improvement over the previous 67.23%. The system is highly efficient, with a forward pass taking only 39ms.
Qualitatively, the model successfully reconstructs complex "L-shaped" rooms that cuboid-only models cannot handle. Even on perspective datasets like Hedau, LayoutNet ranked second at the time of publication, demonstrating its versatility across different camera types.
Conclusion and Future Work
LayoutNet represents a significant advancement in 3D scene understanding. However, it currently relies on the Manhattan constraint (90-degree angles) and can be challenged by heavy occlusion from furniture. Future research will focus on handling non-orthogonal geometries (e.g., curved or hexagonal rooms) and integrating object detection to understand the interaction between furniture and the room's structural boundaries.
Summary updated