Focal Loss for Multiple classification in Pytorch Focal Loss for Dense Object Detection Reference Modify from: clcarwin/focal_loss_pytorch: A PyTorch Implementation of Focal Loss. (github.com)