class_docstr: The DIM implementation based on PaddlePaddle.
  
  The original article refers to
  Ning Xu, et, al. "Deep Image Matting"
  (https://arxiv.org/pdf/1908.07919.pdf).
  
  Args:
      backbone: backbone model.
      stage (int, optional): The stage of model. Defautl: 3.
      decoder_input_channels(int, optional): The channel of decoder input. Default: 512.
      pretrained(str, optional): The path of pretrianed model. Defautl: None.
class_docstr_tok: ["The","DIM","implementation","based","on","PaddlePaddle",".","The","original","article","refers","to","Ning","Xu",",","et",",","al",".","``","Deep","Image","Matting","''","(","https",":","\/\/arxiv.org\/pdf\/1908.07919.pdf",")",".","Args",":","backbone",":","backbone","model",".","stage","(","int",",","optional",")",":","The","stage","of","model",".","Defautl",":","3.","decoder_input_channels","(","int",",","optional",")",":","The","channel","of","decoder","input",".","Default",":","512.","pretrained","(","str",",","optional",")",":","The","path","of","pretrianed","model",".","Defautl",":","None","."]
code: def init_weight(self):
      if self.pretrained is not None:
          utils.load_entire_model(self, self.pretrained)
  
imports: from collections import defaultdict
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.models import layers
  from paddleseg import utils
  from paddleseg.cvlibs import manager
  from ppmatting.models.losses import MRSD
label_desc: Use image node_id 4 for calling the DIM obj's underlying member method code with example usage: obj.init_weight() without return types