code: def _forward(self, targets=None):
      features = self.backbone(self.inputs)
      features = self.neck(features)
  
      proposal_bboxes, proposal_features = self.rpn_head(
          self.inputs["img_whwh"]
      )
      outputs = self.roi_head(
          features, proposal_bboxes, proposal_features, targets
      )
  
      if self.training:
          return outputs
      else:
          bbox_pred, bbox_num, mask_pred = self.post_process(
              outputs["class_logits"],
              outputs["bbox_pred"],
              self.inputs["scale_factor_whwh"],
              self.inputs["ori_shape"],
              outputs["mask_logits"],
          )
          return bbox_pred, bbox_num, mask_pred
  
file_path: PaddleDetection/ppdet/modeling/architectures/queryinst.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from ppdet.core.workspace import register, create
  from .meta_arch import BaseArch
label_desc: Use image node_id 3 for calling the QueryInst obj's underlying member method code with example usage: obj._forward(targets) and returns: outputs, bbox_pred,  bbox_num,  mask_pred