class_docstr: Implementation of Region Proposal Network.
class_docstr_tok: ["Implementation","of","Region","Proposal","Network","."]
docstr: Test function with test time augmentation.
  
  Args:
      imgs (list[torch.Tensor]): List of multiple images
      img_metas (list[dict]): List of image information.
      rescale (bool, optional): Whether to rescale the results.
          Defaults to False.
  
  Returns:
      list[np.ndarray]: proposals
docstr_tok: ["Test","function","with","test","time","augmentation",".","Args",":","imgs","(","list","[","torch.Tensor","]",")",":","List","of","multiple","images","img_metas","(","list","[","dict","]",")",":","List","of","image","information",".","rescale","(","bool",",","optional",")",":","Whether","to","rescale","the","results",".","Defaults","to","False",".","Returns",":","list","[","np.ndarray","]",":","proposals"]
code: def aug_test(self, imgs, img_metas, rescale=False):
      """Test function with test time augmentation.
  
      Args:
          imgs (list[torch.Tensor]): List of multiple images
          img_metas (list[dict]): List of image information.
          rescale (bool, optional): Whether to rescale the results.
              Defaults to False.
  
      Returns:
          list[np.ndarray]: proposals
      """
      proposal_list = self.rpn_head.aug_test_rpn(
          self.extract_feats(imgs), img_metas
      )
      if not rescale:
          for proposals, img_meta in zip(proposal_list, img_metas[0]):
              img_shape = img_meta["img_shape"]
              scale_factor = img_meta["scale_factor"]
              flip = img_meta["flip"]
              flip_direction = img_meta["flip_direction"]
              proposals[:, :4] = bbox_mapping(
                  proposals[:, :4],
                  img_shape,
                  scale_factor,
                  flip,
                  flip_direction,
              )
      return [proposal.cpu().numpy() for proposal in proposal_list]
  
file_path: insightface/detection/scrfd/mmdet/models/detectors/rpn.py
imports: import mmcv
  from mmcv.image import tensor2imgs
  from mmdet.core import bbox_mapping
  from ..builder import DETECTORS, build_backbone, build_head, build_neck
  from .base import BaseDetector
label_desc: Use image node_id 7 for calling the RPN obj's underlying member method code with example usage: obj.aug_test(imgs, img_metas, rescale) and returns: unknown