pix2pixHD icon indicating copy to clipboard operation
pix2pixHD copied to clipboard

Get black/grayscale semantic segmentation image

Open cdapo opened this issue 4 years ago • 1 comments

Hi all, I currently have semantic segmentation images like this (from Carla), 001

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

frankfurt_000000_000576_gtFine_labelIds

Appreciate your help :)

cdapo avatar Apr 15 '21 12:04 cdapo

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

hadikoub avatar Jul 19 '21 09:07 hadikoub