class_docstr: Base class for two-stage detectors.
  
  Two-stage detectors typically consisting of a region proposal network and a
  task-specific regression head.
class_docstr_tok: ["Base","class","for","two-stage","detectors",".","Two-stage","detectors","typically","consisting","of","a","region","proposal","network","and","a","task-specific","regression","head","."]
docstr: bool: whether the detector has RPN
docstr_tok: ["bool",":","whether","the","detector","has","RPN"]
code: def with_rpn(self):
      """bool: whether the detector has RPN"""
      return hasattr(self, "rpn_head") and self.rpn_head is not None
  
file_path: insightface/detection/scrfd/mmdet/models/detectors/two_stage.py
imports: import torch
  import torch.nn
  from ..builder import DETECTORS, build_backbone, build_head, build_neck
  from .base import BaseDetector
label_desc: Use image node_id 2 for calling the TwoStageDetector obj's underlying member method code with example usage: obj.with_rpn() and returns: unknown