class_docstr: The BiSeNet V2 implementation based on PaddlePaddle.
  
  The original article refers to
  Yu, Changqian, et al. "BiSeNet V2: Bilateral Network with Guided Aggregation for Real-time Semantic Segmentation"
  (https://arxiv.org/abs/2004.02147)
  
  Args:
      num_classes (int): The unique number of target classes.
      lambd (float, optional): A factor for controlling the size of semantic branch channels. Default: 0.25.
      in_channels (int, optional): The channels of input image. Default: 3.
      pretrained (str, optional): The path or url of pretrained model. Default: None.
class_docstr_tok: ["The","BiSeNet","V2","implementation","based","on","PaddlePaddle",".","The","original","article","refers","to","Yu",",","Changqian",",","et","al",".","``","BiSeNet","V2",":","Bilateral","Network","with","Guided","Aggregation","for","Real-time","Semantic","Segmentation","''","(","https",":","\/\/arxiv.org\/abs\/2004.02147",")","Args",":","num_classes","(","int",")",":","The","unique","number","of","target","classes",".","lambd","(","float",",","optional",")",":","A","factor","for","controlling","the","size","of","semantic","branch","channels",".","Default",":","0.25.","in_channels","(","int",",","optional",")",":","The","channels","of","input","image",".","Default",":","3.","pretrained","(","str",",","optional",")",":","The","path","or","url","of","pretrained","model",".","Default",":","None","."]
code: def init_weight(self):
      if self.pretrained is not None:
          utils.load_entire_model(self, self.pretrained)
      else:
          for sublayer in self.sublayers():
              if isinstance(sublayer, nn.Conv2D):
                  param_init.kaiming_normal_init(sublayer.weight)
              elif isinstance(
                  sublayer, (nn.BatchNorm, nn.SyncBatchNorm)
              ):
                  param_init.constant_init(sublayer.weight, value=1.0)
                  param_init.constant_init(sublayer.bias, value=0.0)
  
imports: import os
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg import utils
  from paddleseg.cvlibs import manager, param_init
  from paddleseg.models import layers
label_desc: Use image node_id 3 for calling the BiSeNetV2 obj's underlying member method code with example usage: obj.init_weight() without return types