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"]
docstr: Dummy forward function.
docstr_tok: ["Dummy","forward","function","."]
code: def forward_dummy(self, x, proposals):
      """Dummy forward function."""
      outs = ()
      # semantic head
      if self.with_semantic:
          _, semantic_feat = self.semantic_head(x)
      else:
          semantic_feat = None
      # bbox heads
      rois = bbox2roi([proposals])
      for i in range(self.num_stages):
          bbox_results = self._bbox_forward(
              i, x, rois, semantic_feat=semantic_feat
          )
          outs = outs + (
              bbox_results["cls_score"],
              bbox_results["bbox_pred"],
          )
      # mask heads
      if self.with_mask:
          mask_rois = rois[:100]
          mask_roi_extractor = self.mask_roi_extractor[-1]
          mask_feats = mask_roi_extractor(
              x[: len(mask_roi_extractor.featmap_strides)], mask_rois
          )
          if self.with_semantic and "mask" in self.semantic_fusion:
              mask_semantic_feat = self.semantic_roi_extractor(
                  [semantic_feat], mask_rois
              )
              mask_feats += mask_semantic_feat
          last_feat = None
          for i in range(self.num_stages):
              mask_head = self.mask_head[i]
              if self.mask_info_flow:
                  mask_pred, last_feat = mask_head(
                      mask_feats, last_feat
                  )
              else:
                  mask_pred = mask_head(mask_feats)
              outs = outs + (mask_pred,)
      return outs
  
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 4 for calling the HybridTaskCascadeRoIHead obj's underlying member method code with example usage: obj.forward_dummy(x, proposals) and returns: outs