class_docstr: Test methods of RPN.
class_docstr_tok: ["Test","methods","of","RPN","."]
code: def aug_test_rpn(self, feats, img_metas):
      samples_per_gpu = len(img_metas[0])
      aug_proposals = [[] for _ in range(samples_per_gpu)]
      for x, img_meta in zip(feats, img_metas):
          proposal_list = self.simple_test_rpn(x, img_meta)
          for i, proposals in enumerate(proposal_list):
              aug_proposals[i].append(proposals)
      # reorganize the order of 'img_metas' to match the dimensions
      # of 'aug_proposals'
      aug_img_metas = []
      for i in range(samples_per_gpu):
          aug_img_meta = []
          for j in range(len(img_metas)):
              aug_img_meta.append(img_metas[j][i])
          aug_img_metas.append(aug_img_meta)
      # after merging, proposals will be rescaled to the original image size
      merged_proposals = [
          merge_aug_proposals(proposals, aug_img_meta, self.test_cfg)
          for proposals, aug_img_meta in zip(
              aug_proposals, aug_img_metas
          )
      ]
      return merged_proposals
  
imports: import sys
  from mmdet.core import merge_aug_proposals
label_desc: Use image node_id 2 for calling the RPNTestMixin obj's underlying member method code with example usage: obj.aug_test_rpn(feats, img_metas) and returns: merged_proposals