Skip to content

Commit

Permalink
exclude l1_loss in db model
Browse files Browse the repository at this point in the history
  • Loading branch information
odulcy-mindee committed Feb 6, 2024
1 parent 114d7f0 commit c582655
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def compute_loss(
if torch.any(thresh_mask):
l1_loss = (torch.abs(thresh_map - thresh_target) * thresh_mask).sum() / (thresh_mask.sum() + eps)

return l1_loss + focal_scale * focal_loss + dice_loss
# return l1_loss + focal_scale * focal_loss + dice_loss
return focal_scale * focal_loss + dice_loss


def _dbnet(
Expand Down

0 comments on commit c582655

Please sign in to comment.