class_docstr: Implementation of `YOLACT <https://arxiv.org/abs/1904.02689>`_
docstr: Initialize weights of the YOLACT semg head and YOLACT mask head.
code: def init_segm_mask_weights(self):
      """Initialize weights of the YOLACT semg head and YOLACT mask head."""
      self.segm_head.init_weights()
      self.mask_head.init_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 2 for calling the YOLACT obj's underlying member method code with example usage: obj.init_segm_mask_weights() without return types