Estimating Generic 3D Room Structures from 2D Annotations

Denys Rozumnyi, Stefan Popov, Kevis-kokitsi Maninis, Matthias Nießner, Vittorio Ferrari

TL;DR

Researchers have developed a novel pipeline that transforms simple 2D "amodal" segmentation masks—drawn over standard RGB video—into accurate, complex 3D room layouts. By shifting the heavy lifting from human 3D intuition to geometric optimization, the team has released CAD-Estate, a new dataset of over 2,200 high-quality 3D room structures derived from standard YouTube videos.

The Challenge of 3D Annotation

To teach AI systems to understand indoor environments, massive amounts of 3D data are required. However, annotating 3D room layouts (such as walls, floors, and ceilings) remains a notorious bottleneck in computer vision.

Current datasets typically fall into three categories, each with significant drawbacks:

  1. Synthetic data: While plentiful, it suffers from a "domain gap," meaning it often fails to accurately represent the messy reality of real-world environments.
  2. Specialized sensor data: Datasets relying on RGB-D (depth) or panoramic cameras restrict data collection to specific devices and often limit the environments to simple room shapes.
  3. Human 3D annotation: Asking a human annotator to "draw in 3D" is incredibly difficult, time-consuming, and requires complex, specialized user interfaces.

Furthermore, most existing real-world datasets are restricted to "Cuboid" (simple box-like rooms) or "Manhattan" (all walls meeting at strict 90-degree angles) geometries. This paper tackles the challenge of generating generic 3D layouts—capable of including staircases, non-orthogonal walls, and connected rooms—using only standard RGB video and intuitive 2D human input.

A Machine-Assisted Annotation Workflow

The authors propose a workflow that bridges the gap between simple 2D drawing and complex 3D reconstruction.

Pipeline overview showing RGB input, visible masks, structural amodal masks, and the final 3D layout reconstruction.

The process is broken down into four key steps:

  1. Human Input (2D): Annotators provide two types of 2D masks. First, they draw amodal segmentation masks, which represent the full structural extent of an element (like a wall) as if any occluding furniture were invisible. Second, they mark the visible parts of those surfaces to guide point tracking.
  2. 2D Point Tracking: The system utilizes RAFT, a robust optical flow tool, to track points across video frames specifically on the visible parts of the annotated surfaces.
  3. Joint Optimization: This is the core engine of the method. It solves for 3D plane equations by minimizing a joint loss function. This includes a Fitting Loss (ensuring 3D planes match the tracked geometry), an Edge Loss (forcing adjacent planes to meet at shared edges in 3D space), and a Perpendicularity Loss (a soft prior encouraging vertical walls to be perpendicular to floors and ceilings).
  4. Spatial Extent & Refinement: Once the infinite planes are calculated, the system "cuts" them based on the original 2D masks. A final refinement step fills small gaps and trims "hanging walls" that extend past the actual room boundaries.

Datasets and Evaluation

The primary data source for this project is RealEstate10k (RE10k), a massive collection of YouTube real estate walkthroughs. From this, the authors annotated 2,246 scenes (comprising 375,677 images) to create the newly released CAD-Estate dataset.

To verify the accuracy of their 3D reconstructions, the team also evaluated their method on ScanNet, a well-known RGB-D dataset that provides ground-truth depth maps.

Key Insights and Results

  • Amodal is Key: By asking humans to draw the entire wall (even parts hidden behind a sofa), the optimization algorithm receives enough "surface area" to calculate highly stable plane equations.
  • 2D is Easier than 3D: The core philosophy of this work is that humans excel at 2D segmentation but struggle with 3D estimation. By using point tracking and geometric optimization to handle the "3D part," the task is reduced to a standard, manageable labeling job.
  • Beyond the Box: Unlike previous methods that assume every room is a simple box, this approach successfully handles "composite" rooms, such as a living room connected to a kitchen via an angled hallway.
  • High Accuracy & Robustness: On the ScanNet dataset, the method achieved an average depth error of just 22cm in rooms that were often up to 7 meters wide. Manual inspection revealed a 98% recall rate for structural elements.
  • A Challenging New Benchmark: When testing a state-of-the-art 2D layout estimator on the new CAD-Estate dataset, the error rate jumped to 26.3% (compared to ~6% on simpler datasets). This proves that CAD-Estate is a significantly more challenging and realistic benchmark for future research.

Limitations and Future Work

While highly effective, the current model assumes all surfaces are flat; it cannot represent curved walls or vaulted ceilings. Additionally, it only reconstructs what the camera actually observes—it will not "hallucinate" a back wall if the videographer never turns around. Finally, while much faster than manual 3D modeling, it still relies on human 2D annotations, making it less automatic than purely self-supervised methods.

Summary updated

BibTeX
@inproceedings{rozumnyi2023estimating,
  author = {Denys Rozumnyi and Stefan Popov and Kevis-kokitsi Maninis and Matthias Nießner and Vittorio Ferrari},
  title = {{Estimating Generic 3D Room Structures from 2D Annotations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=AA2uO0HHmr},
}
Figure