class_docstr: Differentiable Binarization (DB) Loss Function
  args:
      param (dict): the super paramter for DB Loss
code: def __init__(
      self,
      balance_loss=True,
      main_loss_type="DiceLoss",
      alpha=5,
      beta=10,
      ohem_ratio=3,
      eps=1e-6,
      **kwargs,
  ):
      super(DBLoss, self).__init__()
      self.alpha = alpha
      self.beta = beta
      self.dice_loss = DiceLoss(eps=eps)
      self.l1_loss = MaskL1Loss(eps=eps)
      self.bce_loss = BalanceLoss(
          balance_loss=balance_loss,
          main_loss_type=main_loss_type,
          negative_ratio=ohem_ratio,
      )
  
file_path: PaddleOCR/ppocr/losses/det_db_loss.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
  from .det_basic_loss import BalanceLoss, MaskL1Loss, DiceLoss
label_desc: Use image node_id 1 to create a new DBLoss object from inherited base classes: nn with example: obj = DBLoss(balance_loss, main_loss_type, alpha, beta, ohem_ratio, eps)