Can you print some examples of what the colors in mapping are? I wonder if they are valid/displayable colors. You might also want to disable the “augmentations” on the mask as that could be affecting the colors. You might also consider whether it makes sense to apply augmentations to the mask, since my understanding is the mask is the label for the segmentation task.