docstr: Test only det bboxes without augmentation.
code: def simple_test_bboxes(
      self, x, img_metas, proposals, rcnn_test_cfg, rescale=False
  ):
      """Test only det bboxes without augmentation."""
      rois = bbox2roi(proposals)
      bbox_results = self._bbox_forward(x, rois)
      img_shapes = tuple(meta["img_shape"] for meta in img_metas)
      scale_factors = tuple(meta["scale_factor"] for meta in img_metas)
  
      # split batch bbox prediction back to each image
      cls_score = bbox_results["cls_score"]
      bbox_pred = bbox_results["bbox_pred"]
      num_proposals_per_img = tuple(len(p) for p in proposals)
      rois = rois.split(num_proposals_per_img, 0)
      cls_score = cls_score.split(num_proposals_per_img, 0)
  
      # some detector with_reg is False, bbox_pred will be None
      if bbox_pred is not None:
          # the bbox prediction of some detectors like SABL is not Tensor
          if isinstance(bbox_pred, torch.Tensor):
              bbox_pred = bbox_pred.split(num_proposals_per_img, 0)
          else:
              bbox_pred = self.bbox_head.bbox_pred_split(
                  bbox_pred, num_proposals_per_img
              )
      else:
          bbox_pred = (None,) * len(proposals)
  
      # apply bbox post-processing to each image individually
      det_bboxes = []
      det_labels = []
      for i in range(len(proposals)):
          det_bbox, det_label = self.bbox_head.get_bboxes(
              rois[i],
              cls_score[i],
              bbox_pred[i],
              img_shapes[i],
              scale_factors[i],
              rescale=rescale,
              cfg=rcnn_test_cfg,
          )
          det_bboxes.append(det_bbox)
          det_labels.append(det_label)
      return det_bboxes, det_labels
  
file_path: insightface/detection/scrfd/mmdet/models/roi_heads/test_mixins.py
imports: import logging
  import sys
  import torch
  from mmdet.core import bbox2roi, bbox_mapping, merge_aug_bboxes, merge_aug_masks, multiclass_nms
label_desc: Use image node_id 1 for calling the BBoxTestMixin obj's underlying member method code with example usage: obj.simple_test_bboxes(x, img_metas, proposals, rcnn_test_cfg, rescale) and returns: det_bboxes,  det_labels