/cityscapes-to-voc

Python code for converting Cityscapes dataset to PASCAL VOC format

Primary LanguagePython

cityscapes_to_voc

Python code for converting Cityscapes/Foggy-Cityscapes dataset to PASCAL VOC format

This code is based on this

cityscapes_dir is the folder under which is [/train /val /test] e.g. the cityscapes/leftImg8bit folder of the original file from the cityscapes official website


implementation detail

for detail please refer to the original ipynb from hamzarawal (Hamza Rawal) (github.com).


Run

Modify cityscapes_dir and save_path in the python file to your own path.

Then just run the python file directly. Only tested on Linux.