I am learning how to semantic segmentation.
The dataset is Pascal VOC2012
When I directly decode a image from the net output,I decode a noisy  gray image
This is my loss function:
class CrossEntropyLoss2d(nn.Module):
def __init__(self, weight=None):
    super().__init__()

    self.loss = nn.NLLLoss2d(weight)

def forward(self, outputs, targets):
    return self.loss(F.log_softmax(outputs), targets)

My net output is (batch_size, 22, width , height) , the reason of the number 22 is 22 classes
I do not know the output is what.Is that  pixel  or the score of the pixel belong to the class?