def __init__(self, gamma=2, alpha=0.25):
    super(FocalLoss, self).__init__()
    self.gamma = gamma
    self.alpha = alpha
def __init__(self, gamma=2, alpha=0.25):
    super(FocalLoss, self).__init__()
    self.gamma = gamma
    self.alpha = alpha