From e6315ddd76cc73dea641b66b8cec8fbf06418911 Mon Sep 17 00:00:00 2001 From: gnoixnil'il Date: Sun, 20 Dec 2020 13:46:40 +0800 Subject: [PATCH] Update det_basic_loss.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除重复赋值[self.main_loss_type] --- ppocr/losses/det_basic_loss.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ppocr/losses/det_basic_loss.py b/ppocr/losses/det_basic_loss.py index ef656e8c..57b3667d 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 -- GitLab