Catalog / Vision
ADE20K (2017)
27,000 scenes where every object, and often its parts, is outlined and named.
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.
Get the data
# pip install -U huggingface_hub
hf download 1aurent/ADE20K --repo-type dataset \
--local-dir ade20kfrom datasets import load_dataset # pip install datasets
ds = load_dataset("1aurent/ADE20K")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/1aurent/ADE20K@~parquet/default/validation/*.parquet")
print(df.shape)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.
- Year
- 2017
- Creators
- Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, Antonio Torralba (MIT, U. Toronto)
- Task
- Semantic segmentation and scene parsing
- 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
Samples

indoor › home or hotel › bedroom
wall ×4bed ×3mirror ×2windowpane ×2curtain ×2cabinetbagfanfloor

outdoor › urban › building facade
streetlight ×4wire ×4awning ×2trade name ×2person ×2skybuildingcar

outdoor › urban › yard
plant ×4skygrass

chair ×12fluorescent ×12spotlight ×7wall ×2windowpane ×2ceilingfloortable

indoor › home or hotel › kitchen
cabinet ×4wall ×3mug ×2wall socket ×2toasterkettleplatestoverefrigeratorhoodwork surfacecupbox

outdoor › sports and leisure › dugout
wall ×7bannister ×3railing ×3fence ×2rack ×2skygrandstandstairscolumngatefloorfield

outdoor › urban › street
building ×3pole ×2plant ×2skystreetlightmountainpotroad

indoor › home or hotel › utility room
cabinet ×4wall ×3tumble dryerwasherwindowpanework surfacesinkfloorwall socketcurtain

outdoor › nature landscape › nature landscape › mountain snowy
mountain ×4person ×2skyviewpointearth

grass ×2treewaterboatperson

indoor › cultural › theater indoor procenium
light ×65spotlight ×6wall ×4floor ×2signboard ×2ceilingseatdoor

outdoor › urban › planetarium outdoor
skytreebuildingwallpathgrassplant
What one record actually looks like (raw JSON, row 217)
{
"filename": "ADE_val_00000153.jpg",
"folder": "ADE20K_2021_17_01/images/ADE/validation/home_or_hotel/bedroom",
"image": {
"height": 613,
"src": "samples/ade20k/217-image.jpg",
"width": 1350
},
"objects": [
{
"attributes": "",
"crop": false,
"depth_ordering_rank": 1,
"hypernym": [
"wall",
"partition, divider",
"structure, construction",
"artifact, artefact",
"whole, unit",
"object, physical object",
"physical entity",
"entity"
],
"id": 0,
"name": "wall",
"name_ndx": 2978,
"occluded": false,
"parts": {
"has_parts": [],
"is_part_of": null,
"part_level": 0
},
"polygon": {
"click_date": [],
"x": [
336,
335,
327,
322,
321,
178,
186,
173,
174,
167,
155,
140,
138,
133,
124,
119,
103,
97,
81,
74,
64,
60,
55,
51,
51,
0,
0,
33,
56,
69,
82,
98,
105,
122,
149,
157,
169,
182,
191,
197,
201,
209,
216,
221,
226,
238,
275
],
"y": [
256,
222,
221,
214,
207,
244,
268,
270,
284,
290,
294,
293,
291,
279,
279,
280,
282,
280,
258,
242,
238,
234,
135,
60,
1,
2,
245,
238,
236,
239,
261,
287,
319,
316,
327,
327,
335,
339,
347,
374,
375,
358,
329,
314,
301,
295,
280
]
},
"raw_name": "wall",
"saved_date": "2013-02-18T17:24:09"
},
{
"attributes": "",
"crop": false,
"depth_ordering_rank": 2,
"hypernym": [
"wall",
"partition, divider",
"structure, construction",
"artifact, artefact",
"whole, unit",
"object, physical object",
"physical entity",
"entity"
],
"id": 1,
"name": "wall",
"name_ndx": 2978,
"occluded": false,
"parts": {
"has_parts": [],
"is_part_of": null,
"part_level": 0
},
"polygon": {
"click_date": [],
"x": [
377,
364,
359,
338,
337,
345,
352,
365,
370,
375,
381,
387,
388,
657,
661,
788,
786,
774,
758,
753,
750,
732,
712,
636,
473,
407
],
"y": [
256,
250,
250,
255,
222,
222,
222,
225,
227,
227,
230,
225,
208,
228,
1,
0,
403,
366,
329,
314,
306,
299,
297,
290,
273,
260
]
},
"raw_name": "wall",
"saved_date": "2013-02-18T17:25:48"
},
{
"attributes": "",
"crop": false,
"depth_ordering_rank": 3,
"hypernym": [
"wall",
"partition, divider",
"structure, construction",
"artifact, artefact",
"whole, unit",
"object, physical object",
"physical entity",
"entity"
],
"id": 2,
"name": "wall",
"name_ndx": 2978,
"occluded": false,
"parts": {
"has_parts": [],
"is_part_of": null,
"part_level": 0
},
"polygon": {
"click_date": [],
"x": [
1164,
1164,
787,
791,
867,
893,
905,
909,
904,
914,
918,
1143,
1144,
1152,
1152
],
"y": [
290,
1,
2,
425,
421,
360,
326,
312,
237,
238,
247,
250,
240,
241,
288
]
},
"raw_name": "wall",
"saved_date": "2013-02-18T17:26:26"
},
{
"attributes": "",
"crop": false,
"depth_ordering_rank": 4,
"hypernym": [
"wall",
"partition, divider",
"structure, construction",
"artifact, artefact",
"whole, unit",
"object, physical object",
"physical entity",
"entity"
],
"id": 3,
"name": "wall",
"name_ndx": 2978,
"occluded": false,
"parts": {
"has_parts": [],
"is_part_of": null,
"part_level": 0
},
"polygon": {
"click_date": [],
"x": [
1349,
1165,
1165,
1198,
1251,
1256,
1262,
1273,
1280,
1280,
1281,
1286,
1300,
1337,
1348
],
"y": [
1,
1,
293,
391,
390,
348,
348,
115,
115,
76,
68,
54,
41,
28,
27
]
},
… (truncated)Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from 1aurent/ADE20K at revision bbf21e2
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.
Related datasets
- PASCAL VOC: 2005–2012, had a 20-class segmentation trackHugging Face ↗PASCAL VOC on this site →
- MS COCO: 2014, instance masks; COCO-Stuff adds walls, sky and the likeHugging Face ↗MS COCO on this site →
- Cityscapes: 2016, street scenes for self-drivingHugging Face ↗Cityscapes on this site →
- NYU Depth V2: 2012, indoor scenes with depth and per-pixel classesHugging Face ↗NYU Depth V2 on this site →
- SA-1B: 2023, 1.1 billion masks without class names, for Segment Anythingai.meta.com ↗
Landmark papers
- Pyramid Scene Parsing Network (PSPNet) (2017)PSPNet on this site →
- SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers (2021)SegFormer on this site →
- Masked-attention Mask Transformer for Universal Image Segmentation (Mask2Former) (2021)Mask2Former on this site →
- Masked Autoencoders Are Scalable Vision Learners (MAE) (2021)MAE on this site →
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows (Swin) (2021)Swin on this site →
- A ConvNet for the 2020s (ConvNeXt) (2022)ConvNeXt on this site →
- DINOv2: Learning Robust Visual Features without Supervision (DINOv2) (2023)DINOv2 on this site →
- Segment Anything (SAM) (2023)SAM on this site →