parsnip.load_model

parsnip.load_model(path=None, device='cpu', threads=8)

Load a ParSNIP model.

Parameters:
  • path (str, optional) – Path to the model on disk, or name of a model. If not specified, the default_model specified in settings.py is loaded.

  • device (str, optional) – Torch device to load the model to, by default ‘cpu’

  • threads (int, optional) – Number of threads to use, by default 8

Returns:

Loaded model

Return type:

ParsnipModel