P3Depth: Monocular Depth Estimation with a Piecewise Planarity Prior

Vaishakh Patil, Christos Sakaridis, Alexander Liniger, Luc Van Gool

Abstract

Monocular depth estimation is a fundamental yet ill-posed computer vision task. P3Depth introduces a novel framework that leverages the piecewise planar nature of real-world environments. By predicting local plane coefficients and learning to sample these coefficients from neighboring "seed pixels," the model enforces geometric regularity. This approach results in state-of-the-art accuracy on major benchmarks and generates 3D reconstructions with significantly improved structural consistency and sharper occlusion boundaries.

Introduction

Estimating 3D structure from a single 2D image is inherently ambiguous. While deep learning models have significantly advanced monocular depth estimation, many treat it as a per-pixel regression problem. This often leads to "depth bleeding" at object boundaries and a lack of geometric coherence in planar regions like walls or floors. P3Depth addresses these issues by baking a Piecewise Planarity Prior into the network architecture, recognizing that man-made environments are largely composed of flat surfaces.

Methodology

The P3Depth architecture utilizes a shared ResNet-101 encoder followed by two specialized decoding heads.

Plane Coefficient and Offset Heads

Instead of direct depth regression, the Plane Coefficient Head predicts the parameters $(\alpha, \beta, \gamma, \rho)$ of a local plane for every pixel. Simultaneously, the Offset (Seed) Head predicts a vector for each pixel pointing to a "seed" location within the same planar surface.

The P3Depth architecture featuring the dual-head design, adaptive fusion, and the backprojection-based loss functions.

Adaptive Fusion and Mean Plane Loss

The model generates two depth maps: $D_i$ from local coefficients and $D_s$ by sampling coefficients from the predicted seed pixels. An Adaptive Fusion module then combines these based on a learned confidence map, allowing the model to prioritize the planarity prior in flat regions while maintaining flexibility for complex, non-planar objects. To ensure global consistency, a Mean Plane Loss (MPL) is applied, enforcing that neighboring pixels within a patch conform to a coherent 3D plane.

Results and Evaluation

P3Depth demonstrates superior performance across both indoor and outdoor datasets.

Benchmark Performance

On the NYU Depth-v2 dataset, P3Depth achieved a 9.18% improvement in RMSE and a 3.7% improvement in Absolute Relative Error compared to previous state-of-the-art methods. Similarly, on the KITTI autonomous driving benchmark, it improved RMSE by 14.2%.

Generalization and Qualitative Quality

The model exhibits strong zero-shot generalization, outperforming competitors when tested on unseen datasets like ScanNet and SUN-RGBD. Qualitatively, the predicted depth maps and resulting 3D point clouds show much sharper edges and straighter planar surfaces, avoiding the "warped" artifacts common in standard regression-based models.

Visual comparison of the input image, the final depth map, and the intermediate representations used to enforce the planarity prior.

Conclusion

By integrating a piecewise planarity prior, P3Depth effectively bridges the gap between per-pixel depth estimation and global geometric consistency. While the model faces challenges with highly organic shapes or disconnected planar segments, its ability to produce sharp, structurally sound 3D reconstructions marks a significant advancement in monocular depth estimation. Future research may explore higher-order surface representations to further improve modeling of complex geometries.

Summary updated

BibTeX
@inproceedings{patil2022p,
  author = {Vaishakh Patil and Christos Sakaridis and Alexander Liniger and Luc Van Gool},
  title = {{P3Depth: Monocular Depth Estimation with a Piecewise Planarity Prior}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00166},
}
Figure