class_docstr: Grid roi head for Grid R-CNN.
  
  https://arxiv.org/abs/1811.12030
code: def __init__(self, grid_roi_extractor, grid_head, **kwargs):
      assert grid_head is not None
      super(GridRoIHead, self).__init__(**kwargs)
      if grid_roi_extractor is not None:
          self.grid_roi_extractor = build_roi_extractor(
              grid_roi_extractor
          )
          self.share_roi_extractor = False
      else:
          self.share_roi_extractor = True
          self.grid_roi_extractor = self.bbox_roi_extractor
      self.grid_head = build_head(grid_head)
  
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 1 to create a new GridRoIHead object from inherited base classes: StandardRoIHead with example: obj = GridRoIHead(grid_roi_extractor, grid_head)