# ADE20K (2017)

> 27,000 scenes where every object, and often its parts, is outlined and named.

Page: https://mralbu.github.io/ai-datasets/d/ade20k

## Key facts

- Category: Vision
- Task: Semantic segmentation and scene parsing
- Creators: Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, Antonio Torralba (MIT, U. Toronto)
- Size: 27,574 images, 3,688 object classes (full 2021 release)
- Splits: train 25,574, validation 2,000
- Input: RGB photo of an indoor or outdoor scene
- Labels: A polygon and a name for every object, plus parts and a scene category
- License: Research and educational use (images from SUN and Places)
- Paper: [Scene Parsing through ADE20K Dataset](https://openaccess.thecvf.com/content_cvpr_2017/papers/Zhou_Scene_Parsing_Through_CVPR_2017_paper.pdf)
- Homepage: https://groups.csail.mit.edu/vision/datasets/ADE20K/
- Hugging Face: [1aurent/ADE20K](https://huggingface.co/datasets/1aurent/ADE20K)
- Sampled at Hub revision bbf21e2662a83fa741b7daac9cfd5a074b1b1056 (2026-11-07)

## Why it matters

Classification says what is in a photo and detection draws boxes; segmentation labels every pixel. ADE20K's 150-class "SceneParsing" benchmark, covering walls, floors, sky and roads as well as things, became the standard test for segmentation models, scored by mean intersection over union (mIoU): PSPNet, SegFormer and Mask2Former all report it, and it is now a common test of general vision backbones.

## Worth knowing

- Almost all images were annotated by one person, Adela Barriuso, for consistency. Re-annotating 61 images six months later, she matched her own labels on about 82% of pixels.
- Objects have parts, and parts have parts (a door has a handle). The masks here show whole objects only.
- The benchmark keeps the 150 most frequent classes, which cover most of the pixels; the full release names over 3,600.
- Hover over a mask or a name to highlight that class, or switch to solid masks to see what a segmentation model is asked to output.

## Get the data

A community Parquet copy of the full 2021 release, with mask images and polygons. The 150-class benchmark version (SceneParsing) is on the MIT site.

```bash
# pip install -U huggingface_hub
hf download 1aurent/ADE20K --repo-type dataset \
  --local-dir ade20k
```

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

ds = load_dataset("1aurent/ADE20K")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/1aurent/ADE20K@~parquet/default/validation/*.parquet")
print(df.shape)
```

## Related datasets

- [PASCAL VOC](https://huggingface.co/datasets/TNILab/pascal_voc2012_det_train_val): 2005–2012, had a 20-class segmentation track (on this site: https://mralbu.github.io/ai-datasets/d/pascal-voc)
- [MS COCO](https://huggingface.co/datasets/rafaelpadilla/coco2017): 2014, instance masks; COCO-Stuff adds walls, sky and the like (on this site: https://mralbu.github.io/ai-datasets/d/coco)
- [Cityscapes](https://huggingface.co/datasets/Antreas/Cityscapes): 2016, street scenes for self-driving (on this site: https://mralbu.github.io/ai-datasets/d/cityscapes)
- [NYU Depth V2](https://huggingface.co/datasets/tanganke/nyuv2): 2012, indoor scenes with depth and per-pixel classes (on this site: https://mralbu.github.io/ai-datasets/d/nyu-depth-v2)
- [SA-1B](https://ai.meta.com/datasets/segment-anything/): 2023, 1.1 billion masks without class names, for Segment Anything

## Landmark papers

- [Pyramid Scene Parsing Network (PSPNet)](https://arxiv.org/abs/1612.01105) (2017)
- [SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers](https://arxiv.org/abs/2105.15203) (2021)
- [Masked-attention Mask Transformer for Universal Image Segmentation (Mask2Former)](https://arxiv.org/abs/2112.01527) (2021)

## Papers on this site that use it

- [PSPNet (2016)](https://mralbu.github.io/ai-datasets/p/pspnet.md): Pooled features across multiple spatial scales so every pixel could use whole-scene context to resolve ambiguity.
- [MAE (2021)](https://mralbu.github.io/ai-datasets/p/mae.md): Masked 75% of an image's patches and trained a Vision Transformer to reconstruct the missing pixels using an asymmetric encoder–decoder.
- [Mask2Former (2021)](https://mralbu.github.io/ai-datasets/p/mask2former.md): Unified semantic, instance and panoptic segmentation into one mask-predicting Transformer with masked cross-attention.
- [SegFormer (2021)](https://mralbu.github.io/ai-datasets/p/segformer.md): Paired a hierarchical, position-free Vision Transformer encoder with a tiny all-MLP decoder.
- [Swin (2021)](https://mralbu.github.io/ai-datasets/p/swin.md): A Transformer that attends within small windows and merges patches as it goes deeper, so it can replace the ConvNet backbone in detection and segmentation.
- [ConvNeXt (2022)](https://mralbu.github.io/ai-datasets/p/convnext.md): Modernize a ResNet one design choice at a time, and a pure ConvNet matches Swin Transformers without any attention.
- [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.
- [SAM (2023)](https://mralbu.github.io/ai-datasets/p/sam.md): A model that cuts out whatever you point at, in any image, trained on a billion masks.
