diff --git a/ppocr/losses/det_basic_loss.py b/ppocr/losses/det_basic_loss.py index ef656e8c77de5d1bfa66d55ea2d7f68a9f7217ec..57b3667d9f32a871f748c40a65429551613991ca 100644 --- a/ppocr/losses/det_basic_loss.py +++ b/ppocr/losses/det_basic_loss.py @@ -45,7 +45,6 @@ class BalanceLoss(nn.Layer): self.balance_loss = balance_loss self.main_loss_type = main_loss_type self.negative_ratio = negative_ratio - self.main_loss_type = main_loss_type self.return_origin = return_origin self.eps = eps