The Cityscapes Dataset for Semantic Urban Scene Understanding

Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, Bernt Schiele

TL;DR

Cityscapes is a massive, high-fidelity dataset for semantic urban scene understanding, featuring 25,000 annotated images captured across 50 different cities. By providing both pixel-level and instance-level labels alongside stereo depth information, it establishes a rigorous benchmark that exposes the limitations of current models in handling the complexity and scale variation of real-world inner-city environments.

What Problem Does This Paper Address?

While deep learning has revolutionized computer vision, its progress is tethered to the quality and scale of available data. Before Cityscapes, urban scene datasets like KITTI or CamVid were limited in diversity, often focusing on suburban environments or single cities. These datasets failed to capture the "cluttered" reality of dense inner-city traffic—where a self-driving car must navigate complex intersections, heavy occlusions, and objects appearing at vastly different scales.

The authors argue that existing benchmarks were too "easy" and didn't adequately penalize models that failed on small but critical objects, like a distant pedestrian. To bridge this gap, they created a dataset that prioritizes scene complexity, annotation richness, and geographic variability.

Methods

Cityscapes isn't just a collection of images; it’s a carefully engineered benchmark suite. Key methodological contributions include:

  • Diverse Data Acquisition: Stereo video sequences were recorded from a moving vehicle over several months across 50 cities, primarily in Germany.
  • Two-Tiered Annotation:
    • Fine Annotations: 5,000 images received high-quality, pixel-level labels. Each image took over 1.5 hours to annotate using a "back-to-front" layered polygon approach that implicitly captures depth ordering.
  • Coarse Annotations: 20,000 additional images were annotated much faster (under 7 minutes each) to provide a large volume of weakly-labeled data for training.
  • Instance-Level Metrics: The paper introduces the instance-level Intersection-over-Union (iIoU). Standard IoU is biased toward large areas like roads and buildings. iIoU weights pixel contributions by the ratio of the class's average instance size to the specific object's size, making it a much more sensitive measure for small, important traffic participants.
  • Stereo Context: The dataset includes 16-bit HDR stereo pairs, providing depth information that is crucial for 3D scene understanding.
Example of fine vs. coarse annotations used in the dataset.

Datasets

The primary contribution is the Cityscapes dataset itself. The authors compare it extensively against:

  • KITTI: A popular suburban driving dataset.
  • CamVid: A smaller dataset from Cambridge, UK.
  • DUS (Daimler Urban Segmentation): A dataset focused on inner-city scenes but at a smaller scale.
  • PASCAL VOC / MS COCO: General-purpose object detection datasets used to contrast urban-specific challenges.

Key Insights and Ideas

  • The "Clutter" Challenge: Cityscapes contains a significantly higher number of object instances per image compared to KITTI or Caltech Pedestrian. This higher density makes the "search" space for algorithms much harder.
  • Scale Variation is Critical: Because of the high-resolution imagery, objects are visible and annotated at much greater distances than in previous datasets. Figure 4 (below) shows that Cityscapes covers a far wider range of vehicle distances than KITTI.
  • Generalization Power: A major finding is that models trained on Cityscapes generalize remarkably well. An FCN model trained on Cityscapes outperformed specialized models on their own benchmarks (like CamVid and KITTI) without any additional fine-tuning.
  • Downscaling Hurts: The authors found a consistent negative correlation between image downscaling and performance. Many researchers downscale images to fit into GPU memory, but this paper proves that doing so severely degrades the ability to detect small objects—a critical failure for autonomous systems.
Figure 4. Histogram of object distances in meters for class vehicle.

Key Results

  • Dataset Scale: 30 visual classes grouped into 8 categories (flat, construction, nature, vehicle, sky, object, human, void).
  • Baseline Performance: The authors evaluated several state-of-the-art models (like FCN-8s and Dilated10). The best-performing baseline for pixel-level labeling achieved a 67.1% mean IoU.
  • The Instance Gap: While pixel-level labeling is maturing, instance-level segmentation remains incredibly difficult. The baseline Average Precision (AP) was a mere 4.6%, highlighting a massive opportunity for future research in object localization and segmentation.
  • Class Distribution: As shown in Figure 1, the dataset is dominated by "road," "building," and "vegetation" pixels, but it contains tens of thousands of individual instances of "person" and "rider."
Figure 1. Number of finely annotated pixels (y-axis) per class and their associated categories (x-axis).

Limitations and Future Work

  • Weather and Lighting: The current dataset deliberately avoids adverse weather (heavy rain, snow) and nighttime scenes. The authors acknowledge that specialized datasets are needed for these "edge cases."
  • Computational Constraints: The high resolution of Cityscapes (2MP) pushes the limits of current hardware. Future work is needed to develop more memory-efficient CNN architectures that don't require aggressive downscaling.
  • Instance Segmentation: The low baseline scores for instance-level tasks suggest that current methods struggle with the high occlusion and scale variation found in dense urban environments.

Summary updated

Abstract

Visual understanding of complex urban street scenes is an enabling factor for a wide range of applications. Object detection has benefited enormously from large-scale datasets, especially in the context of deep learning. For semantic urban scene understanding, however, no current dataset adequately captures the complexity of real-world urban scenes. To address this, we introduce Cityscapes, a benchmark suite and large-scale dataset to train and test approaches for pixel-level and instance-level semantic labeling. Cityscapes is comprised of a large, diverse set of stereo video sequences recorded in streets from 50 different cities. 5000 of these images have high quality pixel-level annotations; 20000 additional images have coarse annotations to enable methods that leverage large volumes of weakly-labeled data. Crucially, our effort exceeds previous attempts in terms of dataset size, annotation richness, scene variability, and complexity. Our accompanying empirical study provides an in-depth analysis of the dataset characteristics, as well as a performance evaluation of several state-of-the-art approaches based on our benchmark.
BibTeX
@inproceedings{cordts2016cityscapes,
  author = {Marius Cordts and Mohamed Omran and Sebastian Ramos and Timo Rehfeld and Markus Enzweiler and Rodrigo Benenson and Uwe Franke and Stefan Roth and Bernt Schiele},
  title = {{The Cityscapes Dataset for Semantic Urban Scene Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  doi = {10.1109/cvpr.2016.350},
}
Figure