Hello there,
If I have some label maps in RGB format, I want to convert them to Grey format and feed them to the networks. Is it necessary to convert the 3 channels label map to single channel one?
For the single channel map, just using mask[mask == pixel_value] = class_value can achieve it.
Is there a convenient method (like single channel map with one line code) to achieve this goal?
e.g.
mask_mapping = {
    [255,255,255] : 0,
    [255,255,0]   : 1,
    [255,0,0]     : 2,
    ...
}

Thanks in advance!