code: def __init__(
      self,
      backbone: ConfigType,
      neck: OptConfigType = None,
      head: OptConfigType = None,
      test_cfg: OptConfigType = None,
      data_preprocessor: OptConfigType = None,
      init_cfg: OptMultiConfig = None,
  ):
      super(SingleStageDetector, self).__init__(
          data_preprocessor=data_preprocessor, init_cfg=init_cfg
      )
      self.backbone = MODELS.build(backbone)
      if neck is not None:
          self.neck = MODELS.build(neck)
  
      head_ = head.deepcopy()
      head_.update(test_cfg=test_cfg)
      self.sem_seg_head = MODELS.build(head_)
  
file_path: mmdetection/projects/XDecoder/xdecoder/xdecoder.py
imports: from torch import Tensor
  from mmdet.models.detectors.single_stage import SingleStageDetector
  from mmdet.registry import MODELS
  from mmdet.structures import SampleList
  from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
label_desc: Use image node_id 1 to create a new XDecoder object from inherited base classes: SingleStageDetector with example: obj = XDecoder(backbone, neck, head, test_cfg, data_preprocessor, init_cfg)