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

Monocular Object Instance Segmentation and Depth Ordering with CNNs

Ziyu Zhang, Alexander G. Schwing, Sanja Fidler, Raquel Urtasun

Abstract

In this paper, we tackle the problem of instance-level segmentation and depth ordering from a single monocular image. Towards this goal, we take advantage of convolutional neural nets and train them to directly predict instance-level segmentations where the instance ID encodes the depth ordering within image patches. To provide a coherent single explanation of an image, we develop a Markov random field (MRF) which takes as input the predictions of convolutional neural nets applied at overlapping patches of different resolutions, as well as the output of a connected component algorithm. It aims to predict accurate instance-level segmentation and depth ordering. We demonstrate the effectiveness of our approach on the challenging KITTI benchmark and show good performance on both tasks.

Introduction

Traditional computer vision tasks often separate object detection from semantic segmentation. However, applications such as autonomous driving require a more granular understanding of the scene: identifying specific pixels belonging to individual objects (instance segmentation) and determining their relative distance from the camera (depth ordering).

Reasoning about depth from a single monocular image is an ill-posed problem, as a 2D representation can correspond to infinite 3D configurations. Furthermore, grouping pixels into discrete objects is a complex combinatorial challenge. While many contemporary methods relied on external object detectors to provide proposals, this work proposes a framework to solve detection, segmentation, and ordering jointly.

Methodology

The proposed pipeline consists of two primary stages: a patch-level CNN for local predictions and a global MRF for scene-wide consistency.

Patch-level CNN

The authors adapted a VGG-16 architecture into a fully convolutional network that processes image patches at multiple scales. A key innovation is the "depth-ordered encoding": the CNN is trained to output labels for each pixel where the ID represents its depth rank within the patch. For instance, Label 1 represents the closest object, while Label 2 represents the second closest. This allows the network to learn complex occlusion patterns directly.

The proposed pipeline: from input image patches to depth-ordered instance predictions via a CNN and global MRF.
The CNN architecture, adapted from VGG-16, used for generating patch-level predictions.

Global Markov Random Field (MRF)

Because patches overlap and vary in scale, the system must reconcile multiple local predictions into a single coherent explanation. The MRF serves as the integration layer, using an energy minimization function to combine patch outputs. The energy function includes:

  • Unary Potentials: Incorporating CNN confidence and a "vertical prior" (objects lower in the frame are typically closer in driving scenes).
  • Long-range Connections: Ensuring pixels from distinct physical components are not incorrectly merged into the same instance.
  • Short-range Connections: Encouraging spatial smoothness among neighboring pixels with similar predictions.

Experimental Results

The model was evaluated on the KITTI Object Detection Benchmark. To train the deep network, the authors used a subset of 301 manually annotated images and augmented this with a surrogate ground truth for ~6,700 images generated from 3D bounding boxes and LIDAR data.

  • Instance Segmentation: The model achieved a Mean Weighted Coverage (MWCov) of 70.3%, significantly outperforming previous state-of-the-art methods.
  • Depth Ordering: The system correctly ordered 83.1% of randomly sampled foreground pixel pairs.
  • Qualitative Performance: The framework proved exceptionally capable of "untangling" overlapping vehicles in heavy traffic, where traditional box-based detectors often struggle.

Key Insights and Discussion

By treating depth ordering as a discrete classification problem within local patches, the CNN effectively learns to recognize the geometry of occlusions. Leveraging the fixed camera geometry of the KITTI dataset through a "vertical prior" also proved to be a highly reliable indicator of depth.

However, the approach has limitations. Solving the MRF is computationally intensive and requires approximation techniques like $\alpha$-$\beta$ swap. Additionally, the CNN is currently capped at handling five instances per patch, which may be insufficient for extremely dense environments like parking lots. Future work could involve extending this methodology to indoor scenes where the relationship between image height and depth is more varied.

Summary updated

BibTeX
@inproceedings{zhang2015monocular,
  author = {Ziyu Zhang and Alexander G. Schwing and Sanja Fidler and Raquel Urtasun},
  title = {{Monocular Object Instance Segmentation and Depth Ordering with CNNs}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  url = {https://openreview.net/forum?id=BkWUdZz_-H},
}
Figure