class_docstr: Grid roi head for Grid R-CNN.
  
  https://arxiv.org/abs/1811.12030
docstr: Initialize the weights in head.
  
  Args:
      pretrained (str, optional): Path to pre-trained weights.
          Defaults to None.
code: def init_weights(self, pretrained):
      """Initialize the weights in head.
  
      Args:
          pretrained (str, optional): Path to pre-trained weights.
              Defaults to None.
      """
      super(GridRoIHead, self).init_weights(pretrained)
      self.grid_head.init_weights()
      if not self.share_roi_extractor:
          self.grid_roi_extractor.init_weights()
  
file_path: insightface/detection/scrfd/mmdet/models/roi_heads/grid_roi_head.py
imports: import torch
  from mmdet.core import bbox2result, bbox2roi
  from ..builder import HEADS, build_head, build_roi_extractor
  from .standard_roi_head import StandardRoIHead
label_desc: Use image node_id 2 for calling the GridRoIHead obj's underlying member method code with example usage: obj.init_weights(pretrained) without return types