--- language: - en license: other size_categories: - 1KNYU Depth v2: Densely Labeled Indoor RGB-D Frames

![Task](https://img.shields.io/badge/Task-Depth%20%7C%20Segmentation-blue?style=flat-square) ![Dataset](https://img.shields.io/badge/Dataset-NYU%20Depth%20v2-0aa1a7?style=flat-square) ![Format](https://img.shields.io/badge/Format-Parquet-orange?style=flat-square) ![Classes](https://img.shields.io/badge/Classes-894%20%7C%2040%20%7C%2013-success?style=flat-square) ![Splits](https://img.shields.io/badge/Splits-Train%20%7C%20Test-blueviolet?style=flat-square) ![License](https://img.shields.io/badge/License-Not%20specified-lightgrey?style=flat-square) > **Unofficial redistribution of the NYU Depth v2 labeled subset (1,449 frames) as viewer-ready Parquet: RGB, filled and raw depth, the original 894-class labels, the standard 40- and 13-class labels, instance masks, and scene names, with the official 795 / 654 split.** ## Dataset Description - **Homepage:** https://cs.nyu.edu/~fergus/datasets/nyu_depth_v2.html - **Paper (ECCV 2012):** https://cs.nyu.edu/~fergus/datasets/indoor_seg_support.pdf - **40/13-class mappings:** https://github.com/ankurhanda/nyuv2-meta-data - **License:** Not specified by the authors ## Disclaimer This repository is **not** an official release of NYU Depth v2. NYU Depth v2 was created by Nathan Silberman, Derek Hoiem, Pushmeet Kohli and Rob Fergus (New York University), who retain all copyright and intellectual property rights. This repository does **not** claim ownership of any images, annotations, or metadata. **No license was specified by the original authors.** The project page only asks users to cite the paper below. This copy is an unofficial redistribution for research purposes, with full attribution. **If you are an author or rights holder and want this repository removed or changed, please open a discussion on this repository and it will be addressed promptly.** The 40-class mapping (Gupta et al., CVPR 2013) and 13-class mapping (as used by Couprie et al. and SceneNet) are taken from Ankur Handa's [nyuv2-meta-data](https://github.com/ankurhanda/nyuv2-meta-data) (no license specified). --- # Dataset Overview NYU Depth v2 contains video sequences of 464 indoor scenes recorded with a Microsoft Kinect in three US cities. The labeled subset (this repository) has 1,449 RGB-D frames (640x480) with dense per-pixel labels and instance masks. It is one of the most widely used benchmarks for monocular depth estimation and indoor semantic segmentation. --- # Changes from the Official Release - Converted the official `nyu_depth_v2_labeled.mat` (MATLAB v7.3) into Parquet (one row per frame), so the Dataset Viewer and `datasets` work without MATLAB or `h5py`. - **Depth** (`depth`, `raw_depth`): stored as 16-bit PNG in **millimetres** (`round(meters * 1000)`), so the maximum quantization error is 0.5 mm. Divide by 1000 to get meters. - **Labels**: `label894` is the official label map, unchanged (16-bit PNG). `label40` and `label13` are derived from it with the standard mappings. Both were checked during the build against Handa's published versions on **all 1,449 frames**: the 40-class maps match `labels40.mat` exactly (0 differing pixels), and the 13-class maps match his PNGs 100%. - Official 795 / 654 train/test split from `splits.mat`. - Not included: the raw video sequences (~428 GB), accelerometer data, and the toolbox. - No images were added, removed, or modified. No labels were changed. --- # Dataset Structure | Column | Content | |---|---| | `image` | RGB, 640x480 PNG | | `depth` | filled (in-painted) depth, 16-bit PNG, millimetres | | `raw_depth` | raw Kinect depth (with holes = 0), 16-bit PNG, millimetres | | `label894` | original class labels, 0 = unlabeled, 1..894 (names in the official `.mat`) | | `label40` | 40-class labels (0 = unlabeled), Gupta et al. mapping | | `label13` | 13-class labels (0 = unlabeled) | | `instance` | instance ids within each class | | `index` | 1-based frame index in the official `.mat` | | `scene` | scene name, e.g. `kitchen_0023` | | `scene_type` | scene category, e.g. `kitchen` | | `raw_rgb_filename` | matching frame in the raw video dump | Splits: **train** 795 · **test** 654 (1,449 total). Many depth benchmarks evaluate on the valid region `[45:471, 41:601]` (rows, columns), which excludes the projection border. ### Classes **40-class** (`label40`, 1..40): wall, floor, cabinet, bed, chair, sofa, table, door, window, bookshelf, picture, counter, blinds, desk, shelves, curtain, dresser, pillow, mirror, floor mat, clothes, ceiling, books, refridgerator, television, paper, towel, shower curtain, box, whiteboard, person, night stand, toilet, sink, lamp, bathtub, bag, otherstructure, otherfurniture, otherprop **13-class** (`label13`, 1..13): bed, books, ceiling, chair, floor, furniture, objects, picture, sofa, table, tv, wall, window ## Usage ```python import numpy as np from datasets import load_dataset ds = load_dataset("dronefreak/NYUv2") row = ds["train"][0] rgb = row["image"] depth_m = np.asarray(row["depth"], dtype=np.float32) / 1000.0 # meters labels40 = np.asarray(row["label40"]) ``` --- # Dataset Sources ## Citation ```bibtex @inproceedings{silberman2012indoor, title = {Indoor Segmentation and Support Inference from RGBD Images}, author = {Silberman, Nathan and Hoiem, Derek and Kohli, Pushmeet and Fergus, Rob}, booktitle = {ECCV}, year = {2012} } ``` If you use the 40-class labels, also cite: Gupta, Arbelaez, Malik, *Perceptual Organization and Recognition of Indoor Scenes from RGB-D Images*, CVPR 2013. --- # License The original authors have **not specified a license** for NYU Depth v2; the project page only requires citation of the paper above. This repository therefore uses `license: other` and redistributes the data unofficially for research purposes, with attribution. Users are responsible for ensuring their use complies with any terms the original authors may set. Rights holders can request removal by opening a discussion on this repository.