CondAEModel.load_model_from_checkpoint

classmethod CondAEModel.load_model_from_checkpoint(path: str, **model_kwargs) CondAEModel[source]

Load a model from a checkpoint file. If the checkpoint is in the default checkpoint directory, then the data path is restored.

Parameters:
  • path (str) – The path to the checkpoint file.

  • **model_kwargs – Additional keyword arguments that can be passed to the model. See CondAEModel.__init__() for more details.

Returns:

CondAEModel – The loaded model object.