diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-07-04 22:58:07 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-07-04 22:58:07 +0200 |
commit | 969e1d5e179d9c42ffae0c9b12c9bd3be6091360 (patch) | |
tree | ab849c38bc9b863afad85fd04d6f618031000e6f /training/conf/callbacks/checkpoint.yaml | |
parent | 4da7a2c812221d56a430b35139ac40b23fa76f77 (diff) |
Add wandb callbacks
Diffstat (limited to 'training/conf/callbacks/checkpoint.yaml')
-rw-r--r-- | training/conf/callbacks/checkpoint.yaml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/training/conf/callbacks/checkpoint.yaml b/training/conf/callbacks/checkpoint.yaml index f3beb1b..9216715 100644 --- a/training/conf/callbacks/checkpoint.yaml +++ b/training/conf/callbacks/checkpoint.yaml @@ -1,6 +1,9 @@ -checkpoint: - type: ModelCheckpoint - args: - monitor: val_loss - mode: min - save_last: true +model_checkpoint: + _target_: pytorch_lightning.callbacks.ModelCheckpoint + monitor: "val/loss" # name of the logged metric which determines when model is improving + save_top_k: 1 # save k best models (determined by above metric) + save_last: True # additionaly always save model from last epoch + mode: "min" # can be "max" or "min" + verbose: False + dirpath: "checkpoints/" + filename: "{epoch:02d}" |