class_docstr: The DeepLabV3PHead implementation based on PaddlePaddle.
  
  Args:
      num_classes (int): The unique number of target classes.
      backbone_indices (tuple): Two values in the tuple indicate the indices of output of backbone.
          the first index will be taken as a low-level feature in Decoder component;
          the second one will be taken as input of ASPP component.
          Usually backbone consists of four downsampling stage, and return an output of
          each stage. If we set it as (0, 3), it means taking feature map of the first
          stage in backbone as low-level feature used in Decoder, and feature map of the fourth
          stage as input of ASPP.
      backbone_channels (tuple): The same length with "backbone_indices". It indicates the channels of corresponding index.
      aspp_ratios (tuple): The dilation rates using in ASSP module.
      aspp_out_channels (int): The output channels of ASPP module.
      align_corners (bool): An argument of F.interpolate. It should be set to False when the output size of feature
          is even, e.g. 1024x512, otherwise it is True, e.g. 769x769.
class_docstr_tok: ["The","DeepLabV3PHead","implementation","based","on","PaddlePaddle",".","Args",":","num_classes","(","int",")",":","The","unique","number","of","target","classes",".","backbone_indices","(","tuple",")",":","Two","values","in","the","tuple","indicate","the","indices","of","output","of","backbone",".","the","first","index","will","be","taken","as","a","low-level","feature","in","Decoder","component",";","the","second","one","will","be","taken","as","input","of","ASPP","component",".","Usually","backbone","consists","of","four","downsampling","stage",",","and","return","an","output","of","each","stage",".","If","we","set","it","as","(","0",",","3",")",",","it","means","taking","feature","map","of","the","first","stage","in","backbone","as","low-level","feature","used","in","Decoder",",","and","feature","map","of","the","fourth","stage","as","input","of","ASPP",".","backbone_channels","(","tuple",")",":","The","same","length","with","``","backbone_indices","''",".","It","indicates","the","channels","of","corresponding","index",".","aspp_ratios","(","tuple",")",":","The","dilation","rates","using","in","ASSP","module",".","aspp_out_channels","(","int",")",":","The","output","channels","of","ASPP","module",".","align_corners","(","bool",")",":","An","argument","of","F.interpolate",".","It","should","be","set","to","False","when","the","output","size","of","feature","is","even",",","e.g",".","1024x512",",","otherwise","it","is","True",",","e.g",".","769x769","."]
code: def forward(
      self, feat_list: List[paddle.Tensor]
  ) -> List[paddle.Tensor]:
      logit_list = []
      low_level_feat = feat_list[self.backbone_indices[0]]
      x = feat_list[self.backbone_indices[1]]
      x = self.aspp(x)
      logit = self.decoder(x, low_level_feat)
      logit_list.append(logit)
      return logit_list
  
imports: import os
  from typing import Union, List, Tuple
  import paddle
  from paddle import nn
  import paddle.nn.functional
  import numpy
  from paddlehub.module.module import moduleinfo
  import paddlehub.vision.segmentation_transforms
  from paddlehub.module.cv_module import ImageSegmentationModule
  from deeplabv3p_resnet50_voc.resnet import ResNet50_vd
  import deeplabv3p_resnet50_voc.layers
label_desc: Use image node_id 2 for calling the DeepLabV3PHead obj's underlying member method code with example usage: obj.forward(feat_list) and returns: logit_list