class_docstr: Simplest base roi head including one bbox head and one mask head.
docstr: Initialize mask head and mask roi extractor.
  
  Args:
      mask_roi_extractor (dict or ConfigDict): Config of mask roi
          extractor.
      mask_head (dict or ConfigDict): Config of mask in mask head.
docstr_tok: ["Initialize","mask","head","and","mask","roi","extractor",".","Args",":","mask_roi_extractor","(","dict","or","ConfigDict",")",":","Config","of","mask","roi","extractor",".","mask_head","(","dict","or","ConfigDict",")",":","Config","of","mask","in","mask","head","."]
code: def init_mask_head(
      self, mask_roi_extractor: ConfigType, mask_head: ConfigType
  ) -> None:
      """Initialize mask head and mask roi extractor.
  
      Args:
          mask_roi_extractor (dict or ConfigDict): Config of mask roi
              extractor.
          mask_head (dict or ConfigDict): Config of mask in mask head.
      """
      if mask_roi_extractor is not None:
          self.mask_roi_extractor = MODELS.build(mask_roi_extractor)
          self.share_roi_extractor = False
      else:
          self.share_roi_extractor = True
          self.mask_roi_extractor = self.bbox_roi_extractor
      self.mask_head = MODELS.build(mask_head)
  
imports: from typing import List, Optional, Tuple
  import torch
  from torch import Tensor
  from mmdet.registry import MODELS, TASK_UTILS
  from mmdet.structures import DetDataSample, SampleList
  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 .base_roi_head import BaseRoIHead
label_desc: Use image node_id 3 for calling the StandardRoIHead obj's underlying member method code with example usage: obj.init_mask_head(mask_roi_extractor, mask_head) without return types