code: def __init__(self, in_channels, k=50, mode="small", **kwargs):
      super(PFHeadLocal, self).__init__(in_channels, k, **kwargs)
      self.mode = mode
  
      self.up_conv = nn.Upsample(
          scale_factor=2, mode="nearest", align_mode=1
      )
      if self.mode == "large":
          self.cbn_layer = LocalModule(
              in_channels // 4, in_channels // 4
          )
      elif self.mode == "small":
          self.cbn_layer = LocalModule(
              in_channels // 4, in_channels // 8
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import paddle
  from paddle import nn
  import paddle.nn.functional
  from paddle import ParamAttr
  from ppocr.modeling.backbones.det_mobilenet_v3 import ConvBNLayer
label_desc: Use image node_id 1 to create a new PFHeadLocal object from inherited base classes: DBHead with example: obj = PFHeadLocal(in_channels, k, mode)