code: def __init__(
      self,
      in_channels=2048,
      channels=512,
      num_convs=2,
      concat_input=True,
      dropout_prob=0.1,
      num_classes=150,
      kernel_size=3,
      dilation=1,
  ):
      assert (
          num_convs >= 0 and dilation > 0 and isinstance(dilation, int)
      )
      self.in_channels = in_channels
      self.channels = channels
      self.num_convs = num_convs
      self.concat_input = concat_input
      self.kernel_size = kernel_size
      super(FCNKernelHead, self).__init__()
      if num_convs == 0:
          assert self.in_channels == self.channels
  
      conv_padding = (kernel_size // 2) * dilation
      convs = []
      for i in range(num_convs):
          _in_channels = self.in_channels if i == 0 else self.channels
          convs.append(
              layers.ConvBNReLU(
                  _in_channels,
                  self.channels,
                  kernel_size=kernel_size,
                  padding=conv_padding,
                  dilation=dilation,
              )
          )
  
      if len(convs) == 0:
          self.convs = nn.Identity()
      else:
          self.convs = nn.Sequential(*convs)
      if self.concat_input:
          self.conv_cat = layers.ConvBNReLU(
              self.in_channels + self.channels,
              self.channels,
              kernel_size=kernel_size,
              padding=kernel_size // 2,
          )
  
      self.conv_seg = nn.Conv2D(channels, num_classes, kernel_size=1)
  
      if dropout_prob > 0:
          self.dropout = nn.Dropout2D(dropout_prob)
      else:
          self.dropout = None
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg import utils
  from paddleseg.cvlibs import manager
  from paddleseg.models import layers
  from .upernet import UPerNetHead
label_desc: Use image node_id 1 to create a new FCNKernelHead object from inherited base classes: nn with example: obj = FCNKernelHead(in_channels, channels, num_convs, concat_input, dropout_prob, num_classes, kernel_size, dilation)