class_docstr: Implementation of `YOLACT <https://arxiv.org/abs/1904.02689>`_
code: def __init__(
      self,
      backbone,
      neck,
      bbox_head,
      segm_head,
      mask_head,
      train_cfg=None,
      test_cfg=None,
      pretrained=None,
  ):
      super(YOLACT, self).__init__(
          backbone, neck, bbox_head, train_cfg, test_cfg, pretrained
      )
      self.segm_head = build_head(segm_head)
      self.mask_head = build_head(mask_head)
      self.init_segm_mask_weights()
  
file_path: insightface/detection/scrfd/mmdet/models/detectors/yolact.py
imports: import torch
  from mmdet.core import bbox2result
  from ..builder import DETECTORS, build_head
  from .single_stage import SingleStageDetector
label_desc: Use image node_id 1 to create a new YOLACT object from inherited base classes: SingleStageDetector with example: obj = YOLACT(backbone, neck, bbox_head, segm_head, mask_head, train_cfg, test_cfg, pretrained)