docstr: 重置推理器，可以换推理配置
  Parameters
      predictor_params(dict): 推理配置
docstr_tok: ["\u91cd\u7f6e\u63a8\u7406\u5668\uff0c\u53ef\u4ee5\u6362\u63a8\u7406\u914d\u7f6e","Parameters","predictor_params","(","dict",")",":","\u63a8\u7406\u914d\u7f6e"]
code: def reset_predictor(self, predictor_params=None):
      """
      重置推理器，可以换推理配置
      Parameters
          predictor_params(dict): 推理配置
      """
      if predictor_params is not None:
          self.predictor_params = predictor_params
      if self.model.model:
          self.predictor = get_predictor(
              self.model.model, **self.predictor_params
          )
          if self.image is not None:
              self.predictor.set_input_image(self.image)
  
imports: import json
  import logging
  import os.path
  import time
  import cv2
  import numpy
  import paddle
  from skimage.measure import label
  import util
  from eiseg import logger
  from inference import clicker
  from inference.predictor import get_predictor
  from eiseg.models import EISegModel
  from util import LabelList
  from util.vis import draw_with_blend_and_clicks
label_desc: Use image node_id 20 for calling the InteractiveController obj's underlying member method code with example usage: obj.reset_predictor(predictor_params) without return types