fix args of model checkpoint callback

This commit is contained in:
hobogalaxy committed 2021-02-25 18:13:48 +01:00
1 parent 62781ebc55
commit bcf4146553
3 files changed
+4 -3

No files matched your search

@@ -4,7 +4,8 @@ model_checkpoint:
save_top_k: 2 # save k best models (determined by above metric)
save_last: True # additionaly always save model from last epoch
mode: "max" # can be "max" or "min"
filepath: "checkpoints/{epoch}"
dirpath: 'checkpoints/'
filename: 'sample-mnist-{epoch:02d}'
early_stopping:
@@ -2,5 +2,5 @@ _target_: src.datamodules.mnist_datamodule.MNISTDataModule
data_dir: ${data_dir} # data_dir is specified in config.yaml
batch_size: 64
train_val_test_split: [55_000, 5_000, 10_000]
num_workers: 1
num_workers: 0
pin_memory: False