code: def __init__(self, model_cfg, env_cfg=None):
      super(BaseSegmentation, self).__init__()
      seg_config = model_cfg["config_path"]
      seg_config = Config(seg_config)
      builder = SegBuilder(seg_config)
      seg_model = model_cfg["model_path"]
      self.aug_pred = model_cfg.get("aug_pred", False)
      self.predictor = SegPredictor(builder, seg_model)
  
file_path: PaddleSeg/contrib/QualityInspector/qinspector/ops/segmentation.py
imports: import cv2
  from paddleseg.cvlibs import Config, SegBuilder
  from qinspector.cvlib.workspace import register
  from qinspector.utils.bbox_utils import adjust_bbox
  from qinspector.seg.engine import SegPredictor
label_desc: Use image node_id 1 to create a new BaseSegmentation object from inherited base classes: object with example: obj = BaseSegmentation(model_cfg, env_cfg)