class_docstr: The roi head for Multi-instance prediction.
class_docstr_tok: ["The","roi","head","for","Multi-instance","prediction","."]
docstr: Initialize box head and box roi extractor.
  
  Args:
      bbox_roi_extractor (dict or ConfigDict): Config of box
          roi extractor.
      bbox_head (dict or ConfigDict): Config of box in box head.
docstr_tok: ["Initialize","box","head","and","box","roi","extractor",".","Args",":","bbox_roi_extractor","(","dict","or","ConfigDict",")",":","Config","of","box","roi","extractor",".","bbox_head","(","dict","or","ConfigDict",")",":","Config","of","box","in","box","head","."]
code: def init_bbox_head(
      self, bbox_roi_extractor: ConfigType, bbox_head: ConfigType
  ) -> None:
      """Initialize box head and box roi extractor.
  
      Args:
          bbox_roi_extractor (dict or ConfigDict): Config of box
              roi extractor.
          bbox_head (dict or ConfigDict): Config of box in box head.
      """
      self.bbox_roi_extractor = MODELS.build(bbox_roi_extractor)
      self.bbox_head = MODELS.build(bbox_head)
  
file_path: mmdetection/mmdet/models/roi_heads/multi_instance_roi_head.py
imports: from typing import List, Tuple
  from torch import Tensor
  from mmdet.registry import MODELS
  from mmdet.structures import DetDataSample
  from mmdet.structures.bbox import bbox2roi
  from mmdet.utils import ConfigType, InstanceList
  from ..task_modules.samplers import SamplingResult
  from ..utils import empty_instances, unpack_gt_instances
  from .standard_roi_head import StandardRoIHead
label_desc: Use image node_id 2 for calling the MultiInstanceRoIHead obj's underlying member method code with example usage: obj.init_bbox_head(bbox_roi_extractor, bbox_head) without return types