AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / Vision Driving

    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 cityscapes

    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

    Showing 4 of 12 sampled rows(from 500 in the val split)

    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%

    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

    Related datasets

    Landmark papers