P2Net: Patch-Match and Plane-Regularization for Unsupervised Indoor Depth Estimation

Zehao Yu, Lei Jin, Shenghua Gao

Abstract

Unsupervised depth estimation has achieved significant success in outdoor environments, yet indoor scenes remain a "nightmare" due to large, textureless regions like walls and floors. These homogeneous areas cause standard photometric consistency losses to fail, leading to training collapses. We present P2Net, a novel framework that combines a robust patch-match module for textured regions with a plane-regularization module for textureless areas. By replacing fragile single-pixel matching with patch-based consistency and enforcing a piece-wise planar prior via superpixels, P2Net sets a new state-of-the-art for unsupervised indoor depth estimation.

Introduction: The Challenge of Indoor Scenes

While unsupervised models perform well on datasets like KITTI (outdoor), they often fail when brought indoors. The core issue is the dominance of large, homogeneous regions—white walls, polished floors, and ceilings. Standard models rely on photometric consistency, attempting to find the same pixel across different frames to calculate depth. In a sea of identical white pixels, "false matches" are inevitable. This ambiguity often causes neural networks to predict infinite depth or zero camera motion to minimize error, a phenomenon known as training collapse.

The P2Net Framework

P2Net attacks the indoor depth problem from two complementary angles: handling textured regions with precision and regularizing textureless regions with geometric priors.

Overview of the P2Net framework, featuring (a) the Patch-match module and (b) the Plane-regularization module.

1. Patch-match Module (For Textured Regions)

Instead of matching a single pixel, P2Net selects "keypoints" (areas with high gradients) and matches a $7 \times 7$ patch around them. By considering a neighborhood rather than an isolated point, the matching process becomes significantly more discriminative. This creates a "wider basin of convergence," stabilizing the optimization process even in challenging indoor lighting.

2. Plane-regularization Module (For Textureless Regions)

To handle the "boring" parts of a room where visual matching is impossible, P2Net leverages a geometric prior. The system uses the Felzenszwalb algorithm to segment the image into superpixels. Assuming that large, similarly colored regions are likely flat surfaces, the model enforces a Piece-wise Planar Loss. This forces the predicted depth within a superpixel to fit a 3D plane, effectively "filling in" depth for textureless areas using geometry.

Key Insights: Points vs. Patches

A major innovation in P2Net is the shift from point-based to patch-based warping. Point-based matching is inherently noisy in indoor scenes because local context is missing.

Comparison between naïve point-based warping and the proposed patch-based warping mechanism.

As shown in the figure above, patch-based warping provides the local context necessary to distinguish one part of a wall from another. Furthermore, P2Net demonstrates that classical computer vision techniques, like superpixel segmentation, can serve as powerful "priors" to guide deep networks through regions where visual data is sparse. Unlike previous methods that required pre-computed optical flow, P2Net is a "direct" learner, reducing the risk of error propagation from pre-processing pipelines.

Experimental Results

The model was evaluated on the "gold standards" for indoor depth: NYUv2 and ScanNet.

  • Accuracy: On the NYUv2 dataset, P2Net achieved an Absolute Relative error (Abs Rel) of 0.147, a substantial improvement over the previous state-of-the-art unsupervised method, MovingIndoor (0.208).
  • Surface Normals: Qualitative results indicate that P2Net produces much smoother and more realistic surface orientations for walls and floors.
  • Generalization: When trained on NYUv2 and tested on ScanNet without additional fine-tuning, P2Net maintained its performance lead, proving the robustness of its "patch + plane" logic across different indoor environments.

Limitations and Future Work

While P2Net represents a significant step forward, some limitations remain. The current implementation uses a relatively simple planar fitting; more complex normal-based training could further refine the results. Additionally, the method currently relies on an external superpixel segmentation step. Integrating this segmentation directly into an end-to-end neural architecture could improve speed and elegance. Finally, like most unsupervised models, P2Net assumes a static scene, leaving the challenge of dynamic objects (like moving people) for future research.

Summary updated

BibTeX
@inproceedings{yu2020p,
  author = {Zehao Yu and Lei Jin and Shenghua Gao},
  title = {{P2Net: Patch-Match and Plane-Regularization for Unsupervised Indoor Depth Estimation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58586-0\_13},
}
Figure