kliff.trainer.utils.lightning_utils¶
- class kliff.trainer.utils.lightning_utils.SaveModelCallback(*args: Any, **kwargs: Any)[source]¶
Callback to save the model at the end of each epoch. The model is saved in the ckpt_dir with the name “last_model.pth”. The best model is saved with the name “best_model.pth”. The model is saved every ckpt_interval epochs with the name “epoch_{epoch}.pth”.