class_docstr: Anchor-free head used in `NASFCOS <https://arxiv.org/abs/1906.04423>`_.
  
  It is quite similar with FCOS head, except for the searched structure of
  classification branch and bbox regression branch, where a structure of
  "dconv3x3, conv3x3, dconv3x3, conv1x1" is utilized instead.
docstr: Initialize weights of the head.
docstr_tok: ["Initialize","weights","of","the","head","."]
code: def init_weights(self):
      """Initialize weights of the head."""
      # retinanet_bias_init
      bias_cls = bias_init_with_prob(0.01)
      normal_init(self.conv_reg, std=0.01)
      normal_init(self.conv_centerness, std=0.01)
      normal_init(self.conv_cls, std=0.01, bias=bias_cls)
  
      for branch in [self.cls_convs, self.reg_convs]:
          for module in branch.modules():
              if isinstance(module, ConvModule) and isinstance(
                  module.conv, nn.Conv2d
              ):
                  caffe2_xavier_init(module.conv)
  
file_path: insightface/detection/scrfd/mmdet/models/dense_heads/nasfcos_head.py
imports: import copy
  import torch.nn
  from mmcv.cnn import ConvModule, Scale, bias_init_with_prob, caffe2_xavier_init, normal_init
  from mmdet.models.dense_heads.fcos_head import FCOSHead
  from ..builder import HEADS
label_desc: Use image node_id 2 for calling the NASFCOSHead obj's underlying member method code with example usage: obj.init_weights() without return types