dgs.models.engine.visual_sim_engine.VisualSimilarityEngine.load_model

VisualSimilarityEngine.load_model(path: str) None

Load the model from a file. Set the start epoch to the epoch + 1 of the specified in the loaded model.

Notes

Loads the states of the optimizer and lr_scheduler if they are present in the engine (e.g. during training) and the respective data is given in the checkpoint at the path.

Parameters:

path – The path to the checkpoint where this model was saved.