366. Categorical Label Mask For Semantic Segmentation
Preparing Your Dataset For Training When training a multi-class segmentation model, loss functions such as the CrossEntropyLoss() in Pytorch require the mask to be categorically labeled. As in the image above, the RGB mask (middle) is properly segmented but all…