class_docstr: The RoI head for `Prime Sample Attention in Object Detection
  <https://arxiv.org/abs/1904.04821>`_.
docstr: Box forward function used in both training and testing.
docstr_tok: ["Box","forward","function","used","in","both","training","and","testing","."]
code: def _bbox_forward(self, x, rois):
      """Box forward function used in both training and testing."""
      # TODO: a more flexible way to decide which feature maps to use
      bbox_feats = self.bbox_roi_extractor(
          x[: self.bbox_roi_extractor.num_inputs], rois
      )
      if self.with_shared_head:
          bbox_feats = self.shared_head(bbox_feats)
      cls_score, bbox_pred = self.bbox_head(bbox_feats)
  
      bbox_results = dict(
          cls_score=cls_score,
          bbox_pred=bbox_pred,
          bbox_feats=bbox_feats,
      )
      return bbox_results
  
file_path: insightface/detection/scrfd/mmdet/models/roi_heads/pisa_roi_head.py
imports: from mmdet.core import bbox2roi
  from ..builder import HEADS
  from ..losses.pisa_loss import carl_loss, isr_p
  from .standard_roi_head import StandardRoIHead
label_desc: Use image node_id 2 for calling the PISARoIHead obj's underlying member method code with example usage: obj._bbox_forward(x, rois) and returns: bbox_results