Datasets:
id stringlengths 18 18 | image imagewidth (px) 130 2.1k | mask imagewidth (px) 130 2.1k | scene stringlengths 3 29 |
|---|---|---|---|
ADE_train_00000001 | airport_terminal | ||
ADE_train_00000002 | airport_terminal | ||
ADE_train_00000003 | art_gallery | ||
ADE_train_00000004 | badlands | ||
ADE_train_00000005 | ball_pit | ||
ADE_train_00000006 | bathroom | ||
ADE_train_00000007 | bathroom | ||
ADE_train_00000008 | bathroom | ||
ADE_train_00000009 | bathroom | ||
ADE_train_00000010 | bathroom | ||
ADE_train_00000011 | bathroom | ||
ADE_train_00000012 | bathroom | ||
ADE_train_00000013 | bathroom | ||
ADE_train_00000014 | bathroom | ||
ADE_train_00000015 | bathroom | ||
ADE_train_00000016 | bathroom | ||
ADE_train_00000017 | bathroom | ||
ADE_train_00000018 | bathroom | ||
ADE_train_00000019 | bathroom | ||
ADE_train_00000020 | bathroom | ||
ADE_train_00000021 | bathroom | ||
ADE_train_00000022 | bathroom | ||
ADE_train_00000023 | bathroom | ||
ADE_train_00000024 | bathroom | ||
ADE_train_00000025 | bathroom | ||
ADE_train_00000026 | bathroom | ||
ADE_train_00000027 | bathroom | ||
ADE_train_00000028 | bathroom | ||
ADE_train_00000029 | bathroom | ||
ADE_train_00000030 | bathroom | ||
ADE_train_00000031 | bathroom | ||
ADE_train_00000032 | bathroom | ||
ADE_train_00000033 | bathroom | ||
ADE_train_00000034 | bathroom | ||
ADE_train_00000035 | bathroom | ||
ADE_train_00000036 | bathroom | ||
ADE_train_00000037 | bathroom | ||
ADE_train_00000038 | bathroom | ||
ADE_train_00000039 | bathroom | ||
ADE_train_00000040 | bathroom | ||
ADE_train_00000041 | bathroom | ||
ADE_train_00000042 | bathroom | ||
ADE_train_00000043 | bathroom | ||
ADE_train_00000044 | bathroom | ||
ADE_train_00000045 | bathroom | ||
ADE_train_00000046 | bathroom | ||
ADE_train_00000047 | bathroom | ||
ADE_train_00000048 | bathroom | ||
ADE_train_00000049 | bathroom | ||
ADE_train_00000050 | bathroom | ||
ADE_train_00000051 | bathroom | ||
ADE_train_00000052 | bathroom | ||
ADE_train_00000053 | bathroom | ||
ADE_train_00000054 | bathroom | ||
ADE_train_00000055 | bathroom | ||
ADE_train_00000056 | bathroom | ||
ADE_train_00000057 | bathroom | ||
ADE_train_00000058 | bathroom | ||
ADE_train_00000059 | bathroom | ||
ADE_train_00000060 | bathroom | ||
ADE_train_00000061 | bathroom | ||
ADE_train_00000062 | bathroom | ||
ADE_train_00000063 | bathroom | ||
ADE_train_00000064 | bathroom | ||
ADE_train_00000065 | bathroom | ||
ADE_train_00000066 | bathroom | ||
ADE_train_00000067 | bathroom | ||
ADE_train_00000068 | bathroom | ||
ADE_train_00000069 | bathroom | ||
ADE_train_00000070 | bathroom | ||
ADE_train_00000071 | bathroom | ||
ADE_train_00000072 | bathroom | ||
ADE_train_00000073 | bathroom | ||
ADE_train_00000074 | bathroom | ||
ADE_train_00000075 | bathroom | ||
ADE_train_00000076 | bathroom | ||
ADE_train_00000077 | bathroom | ||
ADE_train_00000078 | bathroom | ||
ADE_train_00000079 | bathroom | ||
ADE_train_00000080 | bathroom | ||
ADE_train_00000081 | bathroom | ||
ADE_train_00000082 | bathroom | ||
ADE_train_00000083 | bathroom | ||
ADE_train_00000084 | bathroom | ||
ADE_train_00000085 | bathroom | ||
ADE_train_00000086 | bathroom | ||
ADE_train_00000087 | bathroom | ||
ADE_train_00000088 | bathroom | ||
ADE_train_00000089 | bathroom | ||
ADE_train_00000090 | bathroom | ||
ADE_train_00000091 | bathroom | ||
ADE_train_00000092 | bathroom | ||
ADE_train_00000093 | bathroom | ||
ADE_train_00000094 | bathroom | ||
ADE_train_00000095 | bathroom | ||
ADE_train_00000096 | bathroom | ||
ADE_train_00000097 | bathroom | ||
ADE_train_00000098 | bathroom | ||
ADE_train_00000099 | bathroom | ||
ADE_train_00000100 | bathroom |
ADE20K SceneParsing
The 150-class ADE20K SceneParsing benchmark (the ADEChallengeData2016 release), packed as parquet so
that a project can load it without unpacking the zip and wiring up paths first.
from datasets import load_dataset
ade = load_dataset("shijli/ade20k", "segmentation") # 20210 train / 2000 val
Columns
| column | |
|---|---|
id |
the release's image id (ADE_train_00000001), so any row joins back to a local copy |
image |
the JPEG, byte for byte as released |
mask |
the annotation PNG, byte for byte as released |
scene |
the scene category from sceneCategories.txt (airport_terminal) |
The challenge's test images have no public labels, so there is no test split.
Masks are labels, not pictures
A mask pixel's value is the class id. Masks are single-channel (mode L) PNGs, exactly as the
release ships them: 0 is "other" (pixels outside the 150 classes) and 1–150 are the classes of
objectInfo150.txt, in its order (1 wall, 2 building, 3 sky, ..., 150 flag).
import numpy as np
mask = np.array(ade["validation"][0]["mask"]) # uint8, values in {0..150}
Whether 0 is a class or ignored is the evaluation protocol's decision, so it is left as is. The
common protocol ignores it and scores the 150 classes: map 0 to 255 and subtract 1 from the rest
(the reduce_zero_label of mmsegmentation).
How this was packed
create_dataset.py in this repo is the script that produced these parquet files, from an unpacked
ADEChallengeData2016 folder. Images and masks are stored as the original files' bytes. After
packing, every one of the 22210 masks was decoded and compared pixel for pixel against its source
file, and every image's bytes against its source file.
The official Hub copy, zhoubolei/scene_parse_150, is a loading script that recent versions of
datasets no longer run, and its auto-converted parquet does not keep the image ids.
License and attribution
The images come from the SUN and Places databases and remain under the copyright of their respective owners. They are distributed for non-commercial research and educational use under the terms of the ADE20K dataset. This packaging adds no rights: use it under those same terms and cite the original work.
@inproceedings{zhou2017scene,
title={Scene Parsing through ADE20K Dataset},
author={Zhou, Bolei and Zhao, Hang and Puig, Xavier and Fidler, Sanja and Barriuso, Adela and Torralba, Antonio},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2017}
}
@article{zhou2019semantic,
title={Semantic Understanding of Scenes through the ADE20K Dataset},
author={Zhou, Bolei and Zhao, Hang and Puig, Xavier and Xiao, Tete and Fidler, Sanja and Barriuso, Adela and Torralba, Antonio},
journal={International Journal of Computer Vision},
volume={127}, number={3}, pages={302--321}, year={2019}
}
- Downloads last month
- -