dgs.models.engine.engine.EngineModule.load_model¶
- EngineModule.load_model(path: str) None [source]¶
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.