docstr: predictor config setting
docstr_tok: ["predictor","config","setting"]
code: def _set_config(self):
      """
      predictor config setting
      """
      model = self.default_pretrained_model_path + ".pdmodel"
      params = self.default_pretrained_model_path + ".pdiparams"
      cpu_config = Config(model, params)
      cpu_config.disable_glog_info()
      cpu_config.disable_gpu()
      self.cpu_predictor = create_predictor(cpu_config)
  
      try:
          _places = os.environ["CUDA_VISIBLE_DEVICES"]
          int(_places[0])
          use_gpu = True
      except:
          use_gpu = False
      if use_gpu:
          gpu_config = Config(model, params)
          gpu_config.disable_glog_info()
          gpu_config.enable_use_gpu(
              memory_pool_init_size_mb=1000, device_id=0
          )
          self.gpu_predictor = create_predictor(gpu_config)
  
imports: from __future__ import absolute_import
  from __future__ import division
  import argparse
  import ast
  import os
  import numpy
  import paddle
  import paddle.static
  from paddle.inference import Config
  from paddle.inference import create_predictor
  from .data_feed import reader
  from .processor import base64_to_cv2
  from .processor import postprocess
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 2 for calling the FaceDetector640 obj's underlying member method code with example usage: obj._set_config() without return types