code: def __init__(self, model_cfg, env_cfg):
      super(Detection, self).__init__()
      self.model_cfg = model_cfg
      det_config = model_cfg["config_path"]
      det_model = model_cfg["model_path"]
      det_config = load_config(det_config)
      self.score_threshold = 0.0
      if "score_threshold" in self.model_cfg.keys():
          self.score_threshold = self.model_cfg["score_threshold"]
  
      self.predictor = Predictor(det_config, mode="test")
      self.predictor.load_weights(det_model)
  
imports: from ppdet.core.workspace import load_config
  from qinspector.cvlib.workspace import register
  from qinspector.det.engine import Predictor
label_desc: Use image node_id 1 to create a new Detection object from inherited base classes: object with example: obj = Detection(model_cfg, env_cfg)