'Args:
idx (int): index of the worker. the 0th worker will print log.
config (PredictConfig): the config to use.'

def __init__(self, idx, config):

    super(MultiProcessPredictWorker, self).__init__()
    self.name = 'MultiProcessPredictWorker-{}'.format(idx)
    self.idx = idx
    self.config = config
