code: def __init__(self, in_channel, out_channel, kernel_size):
      super(CountingDecoder, self).__init__()
      self.in_channel = in_channel
      self.out_channel = out_channel
  
      self.trans_layer = nn.Sequential(
          nn.Conv2D(
              self.in_channel,
              512,
              kernel_size=kernel_size,
              padding=kernel_size // 2,
              bias_attr=False,
          ),
          nn.BatchNorm2D(512),
      )
  
      self.channel_att = ChannelAtt(512, 16)
  
      self.pred_layer = nn.Sequential(
          nn.Conv2D(
              512, self.out_channel, kernel_size=1, bias_attr=False
          ),
          nn.Sigmoid(),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle.nn
  import paddle
  import math
label_desc: Use image node_id 1 to create a new CountingDecoder object from inherited base classes: nn with example: obj = CountingDecoder(in_channel, out_channel, kernel_size)