NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Accurate Reconstruction of 3D Scene Shape from A Single Monocular Image

Wei Yin, Jianming Zhang, Oliver Wang, Simon Niklaus, Simon Chen, Yifan Liu, Chunhua Shen · DOI

Abstract

Estimating 3D depth from a single monocular image is a fundamental challenge in computer vision. While modern models trained on diverse "in-the-wild" datasets achieve impressive relative depth estimation, they often suffer from severe geometric distortions due to unknown camera focal lengths and depth shifts. This paper presents a novel two-stage framework that decouples depth prediction from geometric refinement. By utilizing a 3D point cloud network to recover missing camera parameters, the proposed method achieves state-of-the-art zero-shot performance in reconstructing accurate 3D scene shapes.

The Challenge of Relative Depth

To achieve broad generalization across diverse real-world scenes, researchers typically train monocular depth models on massive datasets of relative depth, such as web-scraped stereo images. However, this approach introduces a significant limitation: the resulting depth maps lack absolute metric scale and contain an unknown depth shift.

While an unknown scale merely changes the size of the reconstructed scene, an unknown depth shift fundamentally warps the 3D geometry. For instance, a flat wall may appear curved in the reconstructed point cloud. Furthermore, the absence of accurate camera focal length information further distorts the angular relationships between surfaces. Existing models often ignore these parameters, leading to warped 3D outputs that are unsuitable for high-fidelity applications like 3D photography or view synthesis.

Figure 1: Comparison of a distorted point cloud (left) with reconstructions after recovering depth shift (middle) and both shift and focal length (right).

A Decoupled Two-Stage Framework

The authors address these distortions through a decoupled architecture consisting of two specialized modules:

  1. Depth Prediction Module (DPM): A Convolutional Neural Network (CNN) that predicts an affine-invariant depth map from an RGB image. This module focuses on capturing the relative depth relationships within the scene.
  2. Point Cloud Module (PCM): The predicted depth map is unprojected into a 3D point cloud using an initial focal length estimate. A 3D point cloud network (based on PVCNN) then analyzes this potentially distorted structure to predict the specific depth shift and focal length adjustments required to "straighten" the geometry.
Figure 2: The two-stage training and inference pipeline, showing the Depth Prediction Module (DPM) and the Point Cloud Module (PCM).

Geometric Training Constraints

To ensure high-quality depth maps from the DPM, the authors introduce two novel loss functions:

  • Image-Level Normalized Regression (ILNR) Loss: This loss normalizes depth maps into a canonical space, allowing the model to learn effectively from datasets with vastly different depth ranges and noise levels.
  • Pair-Wise Normal (PWN) Loss: By sampling points along edges and planes, this loss enforces local and global geometric constraints, ensuring that flat surfaces remain planar and edges stay sharp in the final reconstruction.

Key Insights and Results

A central insight of this work is that geometric distortions—while subtle in 2D depth maps—become glaringly obvious in 3D space. By operating directly on point clouds, the PCM can easily identify structural anomalies like bending walls. Furthermore, the 3D domain gap is significantly smaller than the 2D domain gap; because the structural rules of 3D spaces (e.g., perpendicular walls) are universal, the PCM generalizes exceptionally well to unseen datasets without being confused by variations in lighting or texture.

Performance Benchmarks

The framework demonstrates superior zero-shot performance across multiple benchmarks:

  • 3D Shape Quality: On the OASIS dataset, the method achieved a Locally Scale-Invariant RMSE (LSIV) of 0.52, significantly outperforming the previous best of 0.63.
  • Zero-Shot Depth Prediction: The DPM outperformed established "in-the-wild" models like MiDaS and MegaDepth on 8 unseen datasets. For example, on the NYU dataset, it reduced the Absolute Relative error to 9.0, compared to MiDaS's 11.1.
  • Robustness: The model also proved highly effective for depth completion tasks, matching or exceeding the performance of models specifically trained on target datasets, even when provided with noisy or sparse LiDAR inputs.

Limitations and Future Directions

Despite its success, the framework has limitations. The DPM can be misled by out-of-focus backgrounds, mirrors, or 2D representations of 3D scenes (like paintings). Additionally, the PCM requires sufficient geometric cues to function; it may fail in scenes lacking structural variety, such as a blank wall or a clear sky. Future work may involve extending the PCM to recover radial distortion parameters, moving beyond the standard pinhole camera model to handle a wider variety of lens types.

Summary updated

BibTeX
@article{yin2023towards,
  author = {Wei Yin and Jianming Zhang and Oliver Wang and Simon Niklaus and Simon Chen and Yifan Liu and Chunhua Shen},
  title = {{Towards Accurate Reconstruction of 3D Scene Shape from A Single Monocular Image}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=0bFsM7N6uq},
}
Figure