dgs.models.engine.dgs_engine.DGSEngine.load_model¶
- DGSEngine.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
andlr_scheduler
if they are present in the engine (e.g. during training) and the respective data is given in the checkpoint at thepath
.- Parameters:
path – The path to the checkpoint where this model was saved.