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
for detail please refer to the original ipynb from hamzarawal (Hamza Rawal) (github.com).
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.