Abstract
Humans perceive and construct the surrounding world as an arrangement of simple parametric models. In particular, man-made environments commonly consist of volumetric primitives such as cuboids or cylinders. Inferring these primitives is an important step to attain high-level, abstract scene descriptions. Previous approaches directly estimate shape parameters from a 2D or 3D input, and are only able to reproduce simple objects, yet unable to accurately parse more complex 3D scenes. In contrast, we propose a robust estimator for primitive fitting, which can meaningfully abstract real-world environments using cuboids. A RANSAC estimator guided by a neural network fits these primitives to 3D features, such as a depth map. We condition the network on previously detected parts of the scene, thus parsing it one-by-one. To obtain 3D features from a single RGB image, we additionally optimise a feature extraction CNN in an end-to-end manner. However, naively minimising point-to-primitive distances leads to large or spurious cuboids occluding parts of the scene behind. We thus propose an occlusion-aware distance metric correctly handling opaque scenes. The proposed algorithm does not require labour-intensive labels, such as cuboid annotations, for training. Results on the challenging NYU Depth v2 dataset demonstrate that the proposed algorithm successfully abstracts cluttered real-world 3D scene layouts.
Introduction
Humans have a natural ability to perceive the world as a collection of simple geometric primitives—a house is seen as a set of blocks, and a book as a thin box. For computer vision systems, however, converting a flat RGB image into a structured 3D "Blocks World" is a significant challenge. Existing methods often struggle with scene complexity in cluttered indoor environments and fail to account for occlusion, frequently "hallucinating" oversized shapes that would physically block the camera's view of the rest of the scene.
Methodology
The proposed framework is an end-to-end trainable system that bridges deep learning with classical robust geometry to decompose complex rooms into constituent cuboids (e.g., walls, tables, cabinets) from a single image.
Feature Extraction and Sampling
The pipeline utilizes a CNN (specifically the "Big-to-Small" or BTS architecture) to estimate a depth map from the RGB input. A secondary Sampling Weight Network predicts which pixels belong to the same object, outputting multiple sets of weights to help the system distinguish between different objects in the scene.
Robust Multi-Model Fitting
The system employs a trainable version of RANSAC (based on CONSAC) to iteratively sample points and propose cuboid hypotheses. To allow the entire system to be trained via gradient descent despite the non-differentiable RANSAC loop, the authors use the Implicit Function Theorem to analytically derive gradients for the solver.
Occlusion-Aware Metric
A key innovation is the occlusion-aware distance metric. Standard algorithms often fit spurious oversized boxes because they only see the "front" of objects (2.5D data). The proposed metric penalizes cuboids if they would occlude parts of the scene that the camera can clearly see, ensuring the model respects the physical reality of opaque surfaces.
Evaluation and Results
The method was evaluated on the NYU Depth v2 dataset, using 1,449 indoor scenes. Crucially, the model is self-supervised; it learns to "see" boxes by maximizing geometric consistency with depth maps rather than relying on manual cuboid annotations.
Quantitative Performance
The proposed method significantly outperforms previous state-of-the-art approaches like SQ-Parsing. On the NYU Depth v2 dataset, the method achieved an AUC@50cm of 57.0%, nearly doubling the performance of the best baseline (30.1%). Ablation studies confirmed that without the occlusion-aware metric, mean error increased from ~20cm to over 1.5 meters, proving that handling opacity is essential for accurate 3D fitting.
Discussion and Limitations
While the system successfully abstracts cluttered real-world layouts into human-readable cuboids, it currently faces several limitations:
- Primitive Variety: The model is currently limited to cuboids, whereas real-world scenes contain spheres, cylinders, and more complex meshes.
- Depth Dependency: As the fitting relies on initial depth estimates, errors in depth prediction propagate to the final 3D abstraction.
- Spurious Shapes: The system occasionally misses small scene parts or generates thin, non-representative cuboids.
Future work will focus on extending the framework to handle a wider variety of geometric primitives and exploring more expressive 3D features.
Summary updated