class_docstr: Base class for panoptic heads.
code: def __init__(
      self,
      num_things_classes: int = 80,
      num_stuff_classes: int = 53,
      test_cfg: OptConfigType = None,
      loss_panoptic: OptConfigType = None,
      init_cfg: OptMultiConfig = None,
      **kwargs,
  ) -> None:
      super().__init__(init_cfg=init_cfg)
      self.num_things_classes = num_things_classes
      self.num_stuff_classes = num_stuff_classes
      self.num_classes = num_things_classes + num_stuff_classes
      self.test_cfg = test_cfg
  
      if loss_panoptic:
          self.loss_panoptic = MODELS.build(loss_panoptic)
      else:
          self.loss_panoptic = None
  
file_path: mmdetection/mmdet/models/seg_heads/panoptic_fusion_heads/base_panoptic_fusion_head.py
imports: from abc import ABCMeta, abstractmethod
  from mmengine.model import BaseModule
  from mmdet.registry import MODELS
  from mmdet.utils import OptConfigType, OptMultiConfig
label_desc: Use image node_id 1 to create a new BasePanopticFusionHead object from inherited base classes: BaseModule with example: obj = BasePanopticFusionHead(num_things_classes, num_stuff_classes, test_cfg, loss_panoptic, init_cfg)