SoftmaxFocalLoss I can't find a decent pytorch implementation of softmax focal loss for Semantic Segmentation. So I code one on my own. type python loss.py to test the loss.