class_docstr: Mixin class for testing det bboxes via DenseHead.
class_docstr_tok: ["Mixin","class","for","testing","det","bboxes","via","DenseHead","."]
docstr: Test det bboxes without test-time augmentation, can be applied in
  DenseHead except for ``RPNHead`` and its variants, e.g., ``GARPNHead``,
  etc.
  
  Args:
      feats (tuple[torch.Tensor]): Multi-level features from the
          upstream network, each is a 4D-tensor.
      img_metas (list[dict]): List of image information.
      rescale (bool, optional): Whether to rescale the results.
          Defaults to False.
  
  Returns:
      list[obj:`InstanceData`]: Detection results of each
          image after the post process.                 Each item usually contains following keys. 
          - scores (Tensor): Classification scores, has a shape
            (num_instance,)
          - labels (Tensor): Labels of bboxes, has a shape
            (num_instances,).
          - bboxes (Tensor): Has a shape (num_instances, 4),
            the last dimension 4 arrange as (x1, y1, x2, y2).
docstr_tok: ["Test","det","bboxes","without","test-time","augmentation",",","can","be","applied","in","DenseHead","except","for","``","RPNHead","``","and","its","variants",",","e.g.",",","``","GARPNHead","``",",","etc",".","Args",":","feats","(","tuple","[","torch.Tensor","]",")",":","Multi-level","features","from","the","upstream","network",",","each","is","a","4D-tensor",".","img_metas","(","list","[","dict","]",")",":","List","of","image","information",".","rescale","(","bool",",","optional",")",":","Whether","to","rescale","the","results",".","Defaults","to","False",".","Returns",":","list","[","obj",":","`","InstanceData","`","]",":","Detection","results","of","each","image","after","the","post","process",".","Each","item","usually","contains","following","keys",".","-","scores","(","Tensor",")",":","Classification","scores",",","has","a","shape","(","num_instance",",",")","-","labels","(","Tensor",")",":","Labels","of","bboxes",",","has","a","shape","(","num_instances",",",")",".","-","bboxes","(","Tensor",")",":","Has","a","shape","(","num_instances",",","4",")",",","the","last","dimension","4","arrange","as","(","x1",",","y1",",","x2",",","y2",")","."]
code: def simple_test_bboxes(self, feats, img_metas, rescale=False):
      """Test det bboxes without test-time augmentation, can be applied in
          DenseHead except for ``RPNHead`` and its variants, e.g., ``GARPNHead``,
          etc.
  
          Args:
              feats (tuple[torch.Tensor]): Multi-level features from the
                  upstream network, each is a 4D-tensor.
              img_metas (list[dict]): List of image information.
              rescale (bool, optional): Whether to rescale the results.
                  Defaults to False.
  
          Returns:
              list[obj:`InstanceData`]: Detection results of each
                  image after the post process. \
                  Each item usually contains following keys. \
  
                  - scores (Tensor): Classification scores, has a shape
                    (num_instance,)
                  - labels (Tensor): Labels of bboxes, has a shape
                    (num_instances,).
                  - bboxes (Tensor): Has a shape (num_instances, 4),
                    the last dimension 4 arrange as (x1, y1, x2, y2).
          """
      warnings.warn(
          "You are calling `simple_test_bboxes` in "
          "`dense_test_mixins`, but the `dense_test_mixins`"
          "will be deprecated soon. Please use "
          "`simple_test` instead."
      )
      outs = self.forward(feats)
      results_list = self.get_results(
          *outs, img_metas=img_metas, rescale=rescale
      )
      return results_list
  
file_path: mmdetection/mmdet/models/dense_heads/dense_test_mixins.py
imports: import sys
  import warnings
  from inspect import signature
  import torch
  from mmcv.ops import batched_nms
  from mmengine.structures import InstanceData
  from mmdet.structures.bbox import bbox_mapping_back
  from ..test_time_augs import merge_aug_proposals
label_desc: Use image node_id 1 for calling the BBoxTestMixin obj's underlying member method code with example usage: obj.simple_test_bboxes(feats, img_metas, rescale) and returns: results_list