docstr: Used for computing network flops.
          
docstr_tok: ["Used","for","computing","network","flops","."]
code: def get_pred_numpy(self):
      """Used for computing network flops."""
  
      img = self.inputs["image"]
      batch_size, _, height, width = img.shape
      dummy_img_metas = [
          dict(
              batch_input_shape=(height, width),
              img_shape=(height, width, 3),
              scale_factor=(1.0, 1.0, 1.0, 1.0),
          )
          for _ in range(batch_size)
      ]
      x = self.extract_feat(img)
      outs = self.bbox_head(x, img_metas=dummy_img_metas)
      bbox_list = self.bbox_head.get_bboxes(
          *outs, dummy_img_metas, rescale=True
      )
      return bbox_list
  
file_path: PaddleDetection/ppdet/modeling/architectures/keypoint_petr.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from ppdet.core.workspace import register
  from .meta_arch import BaseArch
  from ..None import layers
label_desc: Use image node_id 5 for calling the PETR obj's underlying member method code with example usage: obj.get_pred_numpy() and returns: bbox_list