def _get_predictor(model, loader, output_file, config):
    predictor_config = config.get('predictor', {})
    class_name = predictor_config.get('name', 'StandardPredictor')
    m = importlib.import_module('unet3d.predictor')
    predictor_class = getattr(m, class_name)
    return predictor_class(model, loader, output_file, config, **predictor_config)
def _get_predictor(model, loader, output_file, config):
    predictor_config = config.get('predictor', {})
    class_name = predictor_config.get('name', 'StandardPredictor')
    m = importlib.import_module('unet3d.predictor')
    predictor_class = getattr(m, class_name)
    return predictor_class(model, loader, output_file, config, **predictor_config)