# NYU Depth V2 (2012)

> 1,449 indoor photos from a Kinect, each with a depth map and a class for every pixel.

Page: https://mralbu.github.io/ai-datasets/d/nyu-depth-v2

## Key facts

- Category: Vision
- Task: Monocular depth estimation and indoor scene segmentation
- Creators: Nathan Silberman, Derek Hoiem, Pushmeet Kohli, Rob Fergus (NYU, UIUC, Microsoft Research)
- Size: 1,449 labeled RGB-D images (464 scenes), plus 407,024 unlabeled video frames
- Splits: train 795, test 654
- Input: 640×480 indoor photo (288×384 in this copy)
- Labels: Depth in meters per pixel, a class per pixel (894 raw names, usually grouped into 13 or 40), surface normals
- License: No explicit license; distributed by NYU for research
- Paper: [Indoor Segmentation and Support Inference from RGBD Images](https://cs.nyu.edu/~fergus/datasets/indoor_seg_support.pdf)
- Homepage: https://cs.nyu.edu/~fergus/datasets/nyu_depth_v2.html
- Hugging Face: [tanganke/nyuv2](https://huggingface.co/datasets/tanganke/nyuv2)
- Sampled at Hub revision b367b8b53c4dcefbcb4d9310b74976a63cc7f306 (2026-11-08)

## Why it matters

The Microsoft Kinect (2010) made depth sensing cheap, and NYU Depth V2 used it to record homes, offices and stores in three US cities. It became the benchmark for predicting depth from a single photo: from Eigen et al. (2014), the first deep network for the task, to MiDaS, DPT and Depth Anything, nearly every depth paper reports its error on NYU. Its labels also made it a standard test for indoor segmentation and for multi-task models that predict depth, classes and surface orientation at once.

## Worth knowing

- The Kinect gives no reading on shiny, dark or far surfaces and at object edges. In the labeled set these holes were filled by colorization (Levin et al.), so the depth maps look smoother than raw sensor data.
- The standard split is by scene, so test rooms never appear in training.
- Depth is scored as RMSE in meters and as δ<1.25, the share of pixels within a factor of 1.25 of the true depth. Modern models pass 98%.
- The surface normals are computed from the depth. Colors encode the direction a surface faces (x, y, z mapped to red, green, blue).
- Hover over a photo to read the depth and class under the pointer.

## Get the data

A community copy of the standard 795/654 split, resized to 288×384 with 13 classes and surface normals (from the MTAN multi-task benchmark). Images, depth and labels are raw arrays. The original 640×480 data, with 894 class names, is a MATLAB file on the NYU site.

```bash
# pip install -U huggingface_hub
hf download tanganke/nyuv2 --repo-type dataset \
  --local-dir nyu-depth-v2
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("tanganke/nyuv2")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/tanganke/nyuv2@~parquet/default/train/*.parquet")
print(df.shape)
```

## Related datasets

- [Make3D](http://make3d.cs.cornell.edu/data.html): 2008, outdoor photos with laser depth from Stanford
- [NYU Depth V1](https://cs.nyu.edu/~fergus/datasets/nyu_depth_v1.html): 2011, 64 scenes, the first version
- [KITTI](https://huggingface.co/datasets/KingRam/Kitti-Object-Detection-Evaluation-2012): 2012, outdoor driving depth from a laser scanner (on this site: https://mralbu.github.io/ai-datasets/d/kitti)
- [SUN RGB-D](https://rgbd.cs.princeton.edu/): 2015, 10,335 RGB-D images including NYU's
- [ScanNet](http://www.scan-net.org/): 2017, 1,513 3D scans of 707 indoor spaces
- [Cityscapes](https://huggingface.co/datasets/Antreas/Cityscapes): 2016, outdoor segmentation, with stereo depth (on this site: https://mralbu.github.io/ai-datasets/d/cityscapes)
- [ADE20K](https://huggingface.co/datasets/1aurent/ADE20K): 2017, everyday indoor and outdoor scenes labeled pixel by pixel (on this site: https://mralbu.github.io/ai-datasets/d/ade20k)

## Landmark papers

- [Depth Map Prediction from a Single Image using a Multi-Scale Deep Network](https://arxiv.org/abs/1406.2283) (2014)
- [Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer (MiDaS)](https://arxiv.org/abs/1907.01341) (2019)
- [Vision Transformers for Dense Prediction (DPT)](https://arxiv.org/abs/2103.13413) (2021)
- [Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data](https://arxiv.org/abs/2401.10891) (2024)

## Papers on this site that use it

- [FCN (2014)](https://mralbu.github.io/ai-datasets/p/fcn.md): Turned image classifiers into pixel-by-pixel labelers by replacing fully connected layers with convolutions and skip connections.
- [BYOL (2020)](https://mralbu.github.io/ai-datasets/p/byol.md): Learned strong image representations without any negative pairs by training an online network to predict a slowly moving copy of itself.
- [DINOv2 (2023)](https://mralbu.github.io/ai-datasets/p/dinov2.md): Combined image-level self-distillation with patch-level masked modeling on 142 million automatically curated images to produce frozen all-purpose vision features.
