class_docstr: Hybrid task cascade roi head including one bbox head and one mask head.
  
  https://arxiv.org/abs/1901.07518
class_docstr_tok: ["Hybrid","task","cascade","roi","head","including","one","bbox","head","and","one","mask","head",".","https",":","\/\/arxiv.org\/abs\/1901.07518"]
code: def __init__(
      self,
      num_stages,
      stage_loss_weights,
      semantic_roi_extractor=None,
      semantic_head=None,
      semantic_fusion=("bbox", "mask"),
      interleaved=True,
      mask_info_flow=True,
      **kwargs,
  ):
      super(HybridTaskCascadeRoIHead, self).__init__(
          num_stages, stage_loss_weights, **kwargs
      )
      assert self.with_bbox and self.with_mask
      assert not self.with_shared_head  # shared head is not supported
  
      if semantic_head is not None:
          self.semantic_roi_extractor = build_roi_extractor(
              semantic_roi_extractor
          )
          self.semantic_head = build_head(semantic_head)
  
      self.semantic_fusion = semantic_fusion
      self.interleaved = interleaved
      self.mask_info_flow = mask_info_flow
  
file_path: insightface/detection/scrfd/mmdet/models/roi_heads/htc_roi_head.py
imports: import torch
  import torch.nn.functional
  from mmdet.core import bbox2result, bbox2roi, bbox_mapping, merge_aug_bboxes, merge_aug_masks, multiclass_nms
  from ..builder import HEADS, build_head, build_roi_extractor
  from .cascade_roi_head import CascadeRoIHead
label_desc: Use image node_id 1 to create a new HybridTaskCascadeRoIHead object from inherited base classes: CascadeRoIHead with example: obj = HybridTaskCascadeRoIHead(num_stages, stage_loss_weights, semantic_roi_extractor, semantic_head, semantic_fusion, interleaved, mask_info_flow)