Skip to content

Commit

Permalink
rm un-used num_class (PaddlePaddle#3451)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyulingyue authored Aug 16, 2023
1 parent 0dd7dc5 commit 9c79cbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions paddleseg/models/losses/focal_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ class MultiClassFocalLoss(nn.Layer):
and does not contribute to the input gradient. Default ``255``.
"""

def __init__(self, num_class, alpha=1.0, gamma=2.0, ignore_index=255):
def __init__(self, alpha=1.0, gamma=2.0, ignore_index=255):
super().__init__()
self.num_class = num_class
self.alpha = alpha
self.gamma = gamma
self.ignore_index = ignore_index
Expand Down

0 comments on commit 9c79cbe

Please sign in to comment.