Factoring Shape, Pose, and Layout from the 2D Image of a 3D Scene

Shubham Tulsiani, Saurabh Gupta, David F. Fouhey, Alexei A. Efros, Jitendra Malik · DOI

Abstract

The goal of this paper is to take a single 2D image of a scene and recover the 3D structure in terms of a small set of factors: a layout representing the enclosing surfaces as well as a set of objects represented in terms of shape and pose. We propose a convolutional neural network-based approach to predict this representation and benchmark it on a large dataset of indoor scenes. Our experiments evaluate a number of practical design questions, demonstrate that we can infer this representation, and quantitatively and qualitatively demonstrate its merits compared to alternate representations.

Introduction: The Challenge of 3D Scene Understanding

Reconstructing a 3D scene from a single 2D image is a fundamental challenge in computer vision. Most existing methods produce either 2.5D representations, such as depth maps or surface normals, or global volumetric grids. However, these approaches often fail to distinguish between individual entities, lack amodal reasoning (the ability to "see" behind occlusions), and conflate uncertainties in shape and pose.

This paper introduces a method to "factor" a 2D image into its constituent parts: a global room layout and a set of discrete objects, each with its own 3D shape and 6-degree-of-freedom (6-DoF) pose. By treating the scene as a collection of entities rather than an undifferentiated "soup" of pixels or voxels, the model enables amodal completion and intuitive scene manipulation.

Comparison of 3D scene representations: (a) Input image, (b) Global voxels, (c) Depth map, (d) Predicted amodal layout, (e) Predicted objects, (f) Final factored representation.

Methodology

The authors propose a modular CNN-based framework consisting of two primary pipelines:

1. Layout Prediction

A skip-connected "Scene Network" predicts the amodal layout as a disparity map. Crucially, it predicts what the room would look like if all objects were removed, allowing the system to understand the full extent of the floor and walls.

2. Object Prediction

Given 2D bounding box proposals, an "Object-Centric Network" extracts features from three sources:

  • Fine Module: High-resolution ROI-pooled features from the local box.
  • Coarse Module: Global context from the entire image, essential for determining absolute scale and distance.
  • Bounding Box Module: The 2D coordinates of the box itself.
The proposed modular CNN architecture, featuring separate pipelines for scene layout and object-centric shape and pose prediction.

These features are used to predict the object's Shape (a $32^3$ voxel occupancy grid) and Pose (translation, anisotropic scale, and rotation). Notably, rotation is treated as a classification task (24 bins) rather than direct regression to better handle multi-modal object orientations.

Key Insights

  • The Power of Factoring: Separating shape from pose allows the model to output high-resolution shapes even with positional uncertainty. It also enables "what-if" reasoning, such as moving a predicted object in 3D space.
  • Classification for Rotation: Classifying rotation into bins is more robust than regressing quaternions, as it prevents the model from "averaging" between plausible but distinct orientations.
  • Global Context for Scale: The "Coarse Module" is vital; a tight crop of an object is insufficient to determine its absolute 3D size without global image context.
  • Amodal Layouts: Predicting the "empty room" layout provides a stable foundation for scene understanding compared to predicting only visible wall depth.

Evaluation and Results

The model was trained on SUNCG, a massive synthetic dataset of 400,000 rendered 3D house models. On this dataset, the model achieved a median Shape IoU of 0.41 and correctly predicted translation within 1 meter for 87.3% of objects.

To test real-world generalization, the model was evaluated on the NYUv2 dataset. Despite being trained entirely on synthetic data, the model produced convincing 3D reconstructions of real photographs, identifying objects and room boundaries accurately. This demonstrates that the factored representation is more versatile and generalizes better across tasks than standard depth maps or global voxels.

Limitations and Future Work

While promising, the model currently lacks reasoning about physical constraints, sometimes predicting objects that float or intersect with walls. Future work could involve incorporating physical "common sense," reducing dependency on synthetic training data through unsupervised learning, and improving the 2D object proposal phase to prevent error propagation.

Summary updated

BibTeX
@inproceedings{tulsiani2017factoring,
  author = {Shubham Tulsiani and Saurabh Gupta and David F. Fouhey and Alexei A. Efros and Jitendra Malik},
  title = {{Factoring Shape, Pose, and Layout from the 2D Image of a 3D Scene}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2018.00039},
}
Figure