diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-10-10 18:05:44 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-10-10 18:05:44 +0200 |
commit | 9d3e158f48e3e965d67f154e05faaaf1cadbb836 (patch) | |
tree | 57b8e1b38874e9a778671abe4eaaa841fc56049b /training/conf/callbacks/lightning/checkpoint.yaml | |
parent | 38f546f0b86fc0dc89863b00c5ee8c6685394ef2 (diff) |
Update configs
Diffstat (limited to 'training/conf/callbacks/lightning/checkpoint.yaml')
-rw-r--r-- | training/conf/callbacks/lightning/checkpoint.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/training/conf/callbacks/lightning/checkpoint.yaml b/training/conf/callbacks/lightning/checkpoint.yaml new file mode 100644 index 0000000..b4101d8 --- /dev/null +++ b/training/conf/callbacks/lightning/checkpoint.yaml @@ -0,0 +1,9 @@ +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}" |