class_docstr: Base class for mask heads used in One-Stage Instance Segmentation.
class_docstr_tok: ["Base","class","for","mask","heads","used","in","One-Stage","Instance","Segmentation","."]
code: def __init__(self, init_cfg: OptMultiConfig = None) -> None:
      super().__init__(init_cfg=init_cfg)
  
file_path: mmdetection/mmdet/models/dense_heads/base_mask_head.py
imports: from abc import ABCMeta, abstractmethod
  from typing import List, Tuple, Union
  from mmengine.model import BaseModule
  from torch import Tensor
  from mmdet.structures import SampleList
  from mmdet.utils import InstanceList, OptInstanceList, OptMultiConfig
  from ..utils import unpack_gt_instances
label_desc: Use image node_id 1 to create a new BaseMaskHead object from inherited base classes: BaseModule with example: obj = BaseMaskHead(init_cfg)