class_docstr: The roi head for Multi-instance prediction.
class_docstr_tok: ["The","roi","head","for","Multi-instance","prediction","."]
code: def __init__(self, num_instance: int = 2, *args, **kwargs) -> None:
      self.num_instance = num_instance
      super().__init__(*args, **kwargs)
  
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 1 to create a new MultiInstanceRoIHead object from inherited base classes: StandardRoIHead with example: obj = MultiInstanceRoIHead(num_instance)