Sometimes, semantic masks seem to be all black after visualizing them. This happens when the data structure is defined so that the masks only have one channel instead of three for RGB. In this case, typically, the background class has the value 0, the first class the value 1, etc. When you then try to visualize this in a grey-scale image, all these pixels will look black as the value for white is 255.