code: def __init__(
      self,
      tcl_bs,
      max_text_length,
      max_text_nums,
      pad_num,
      eps=1e-6,
      **kwargs,
  ):
      super(PGLoss, self).__init__()
      self.tcl_bs = tcl_bs
      self.max_text_nums = max_text_nums
      self.max_text_length = max_text_length
      self.pad_num = pad_num
      self.dice_loss = DiceLoss(eps=eps)
  
file_path: PaddleOCR/ppocr/losses/e2e_pg_loss.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from paddle import nn
  import paddle
  from .det_basic_loss import DiceLoss
  from ppocr.utils.e2e_utils.extract_batchsize import pre_process
label_desc: Use image node_id 1 to create a new PGLoss object from inherited base classes: nn with example: obj = PGLoss(tcl_bs, max_text_length, max_text_nums, pad_num, eps)