mcordts / cityscapesScripts

README and scripts for the Cityscapes Dataset
MIT License
2.12k stars 608 forks source link

The Cityscapes Dataset

This repository contains scripts for inspection, preparation, and evaluation of the Cityscapes dataset. This large-scale dataset contains a diverse set of stereo video sequences recorded in street scenes from 50 different cities, with high quality pixel-level annotations of 5 000 frames in addition to a larger set of 20 000 weakly annotated frames.

Details and download are available at: www.cityscapes-dataset.com

Dataset Structure

The folder structure of the Cityscapes dataset is as follows:

{root}/{type}{video}/{split}/{city}/{city}_{seq:0>6}_{frame:0>6}_{type}{ext}

The meaning of the individual elements is:

Possible values of type

More types might be added over time and also not all types are initially available. Please let us know if you need any other meta-data to run your approach.

Possible values of split

Scripts

Installation

Install cityscapesscripts with pip

python -m pip install cityscapesscripts

Graphical tools (viewer and label tool) are based on Qt5 and can be installed via

python -m pip install cityscapesscripts[gui]

Usage

The installation installs the cityscapes scripts as a python module named cityscapesscripts and exposes the following tools

Package Content

The package is structured as follows

Note that all files have a small documentation at the top. Most important files

Evaluation

Once you want to test your method on the test set, please run your approach on the provided test images and submit your results: Submission Page

The result format is described at the top of our evaluation scripts:

Note that our evaluation scripts are included in the scripts folder and can be used to test your approach on the validation set. For further details regarding the submission process, please consult our website.

License

The dataset itself is released under custom terms and conditions.

The Cityscapes Scripts are released under MIT license as found in the license file.

Contact

Please feel free to contact us with any questions, suggestions or comments: