pix2pixHD
pix2pixHD copied to clipboard
Get black/grayscale semantic segmentation image
Hi all,
I currently have semantic segmentation images like this (from Carla),

how can I color them to fit the required style? (1 Channel only, mostly "black" image)

Appreciate your help :)
You can try using the cityscapes scripts https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/preparation/createTrainIdLabelImgs.py csCreateTrainIdLabelImgs or https://github.com/caozhiwei1994/labelme2dataset/blob/main/labelme2coco_cityscape/labelme2cityscape.py where you can provide them with COCO JSON annotation format and it will generate a label map with 1 channel compatible with Pix2PixHD