Cityscapes (2016)
5,000 street photos from 50 cities, every pixel labeled as road, car, person, sky and so on.
Why it matters
Self-driving research needed more than boxes around cars: a car has to know where the road ends and the sidewalk begins. Cityscapes gave 5,000 street scenes from 50 cities with careful pixel-level labels, far more than the few hundred of CamVid or KITTI before it. Its 19-class benchmark, scored by mean IoU, became the standard for semantic segmentation alongside PASCAL VOC and ADE20K, and its color palette (purple road, pink sidewalk, blue cars) is what most people picture when they think of segmentation.
Get the data
# pip install -U huggingface_hub
hf download Antreas/Cityscapes --repo-type dataset \
--local-dir cityscapesfrom datasets import load_dataset # pip install datasets
ds = load_dataset("Antreas/Cityscapes")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/Antreas/Cityscapes@~parquet/default/val/*.parquet")
print(df.shape)A community Parquet copy of the finely labeled images, with label-id masks. The official download, with coarse labels, instances and video, needs a free account at cityscapes-dataset.com. The viewer serves masks as JPEG, so the sample cleans their edges.
- Year
- 2016
- Creators
- Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, Bernt Schiele (Daimler, MPI Informatics, TU Darmstadt)
- Task
- Semantic segmentation of street scenes
- Size
- 5,000 finely labeled images (2048×1024), plus 20,000 coarsely labeled
- Splits
- train 2,975 · validation 500 · test 1,525
- Input
- 2048×1024 photo from a car's windshield camera
- Labels
- A class per pixel (30 classes, 19 used in the benchmark), plus instance ids for people and vehicles
- License
- Cityscapes license (non-commercial research and teaching; registration required)
- Paper
- The Cityscapes Dataset for Semantic Urban Scene Understanding
Samples

road 32%building 31%car 7%sidewalk 6%sky 5%bicycle 3%parking 2%pole 1%vegetation 1%traffic sign <1%rail track <1%rider <1%pole group <1%tunnel <1%

road 38%vegetation 16%bus 13%car 10%building 5%sky 5%rail track <1%

road 35%building 29%vegetation 9%car 4%bicycle 3%motorcycle 2%fence 2%parking 2%pole <1%rail track <1%sky <1%traffic sign <1%sidewalk <1%

vegetation 45%ground 24%road 16%car 3%traffic sign 3%terrain 1%pole <1%dynamic <1%

car 30%road 26%vegetation 16%building 10%sky 3%traffic sign <1%rider <1%rail track <1%pole <1%terrain <1%

road 37%building 21%fence 10%vegetation 7%bicycle 3%sidewalk 2%car 2%person 1%traffic sign <1%pole <1%traffic light <1%dynamic <1%rail track <1%pole group <1%

road 40%building 27%vegetation 10%sidewalk 7%sky 1%dynamic 1%car <1%traffic sign <1%pole <1%bicycle <1%person <1%rail track <1%rider <1%

road 33%sky 22%car 18%vegetation 8%building 1%fence <1%person <1%rider <1%bicycle <1%pole <1%sidewalk <1%truck <1%tunnel <1%traffic light <1%ground <1%terrain <1%traffic sign <1%

road 39%vegetation 33%car 10%bus 3%sky 3%building 1%sidewalk 1%terrain <1%trailer <1%traffic sign <1%bicycle <1%

road 43%building 33%vegetation 5%sky 3%sidewalk 3%car 2%bicycle <1%rail track <1%wall <1%rider <1%ground <1%pole <1%traffic sign <1%traffic light <1%

road 38%building 25%car 13%truck 5%sky 3%pole <1%sidewalk <1%rail track <1%traffic sign <1%bicycle <1%person <1%parking <1%tunnel <1%

road 38%vegetation 25%car 14%sky 3%building 3%sidewalk <1%fence <1%person <1%traffic sign <1%dynamic <1%traffic light <1%pole <1%rail track <1%
What one record actually looks like (raw JSON, row 408)
{
"image": {
"height": 1024,
"src": "samples/cityscapes/408-image.jpg",
"width": 2048
},
"semantic_segmentation": {
"classes": {
"0": 0.0016,
"1": 0.0401,
"2": 0.0052,
"3": 0.0083,
"4": 0.0214,
"5": 0.0005,
"6": 0.0016,
"7": 0.3181,
"8": 0.0583,
"9": 0.0197,
"10": 0.0058,
"11": 0.3126,
"12": 0.0015,
"13": 0.0002,
"14": 0.0001,
"15": 0.0004,
"16": 0.002,
"17": 0.0136,
"18": 0.0022,
"19": 0.0008,
"20": 0.007,
"21": 0.0112,
"22": 0.0008,
"23": 0.0541,
"24": 0.0014,
"25": 0.0032,
"26": 0.0727,
"27": 0.0003,
"28": 0,
"29": 0,
"30": 0,
"31": 0.0002,
"32": 0.001,
"33": 0.0329,
"34": 0.0008,
"35": 0.0001,
"36": 0.0001,
"37": 0
},
"height": 512,
"src": "samples/cityscapes/408-semantic_segmentation.png",
"width": 1024
}
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-08 from Antreas/Cityscapes at revision 25f5ec2
Worth knowing
- Labeling one image finely took more than 1.5 hours on average, with a quality check after.
- The photos are from 50 cities, mostly in Germany, in spring, summer and fall, in daylight and good or medium weather. No night, rain or snow.
- The car's own hood at the bottom of the frame is a class of its own, "ego vehicle", and is not scored.
- The benchmark ignores rare classes like caravan, trailer and parking; the remaining 19 cover almost all labeled pixels.
- Hover over a photo to see the class under the pointer. The colors are the official Cityscapes palette.
Related datasets
- CamVid: 2008, 701 labeled frames of video from Cambridge, the first of its kindmi.eng.cam.ac.uk ↗
- KITTI: 2012, driving benchmark with laser depth; a few hundred segmentation labelsHugging Face ↗KITTI on this site →
- ADE20K: 2017, scene parsing of everyday scenes, 150 classesHugging Face ↗ADE20K on this site →
- Mapillary Vistas: 2017, 25,000 street images from around the worldmapillary.com ↗
- BDD100K: 2018, driving video from US cities, with weather and nightbdd-data.berkeley.edu ↗
- NYU Depth V2: 2012, indoor RGB-D scenes with depth and segmentation labelsHugging Face ↗NYU Depth V2 on this site →
Landmark papers
- Pyramid Scene Parsing Network (PSPNet) (2017)PSPNet on this site →
- Mask R-CNN (2017)Mask R-CNN on this site →
- Encoder-Decoder with Atrous Separable Convolution (DeepLabv3+) (2018)DeepLabv3+ on this site →
- Deep High-Resolution Representation Learning for Visual Recognition (HRNet) (2019)HRNet on this site →
- Momentum Contrast for Unsupervised Visual Representation Learning (MoCo) (2019)MoCo 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 →
- DINOv2: Learning Robust Visual Features without Supervision (DINOv2) (2023)DINOv2 on this site →
- Segment Anything (SAM) (2023)SAM on this site →