Skip to content

Commit

Permalink
fix args of model checkpoint callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleve committed Feb 25, 2021
1 parent 62781eb commit bcf4146
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion project/configs/callbacks/default_callbacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion project/configs/datamodule/mnist_datamodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion project/src/utils/template_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ def extras(config, model, datamodule, callbacks, loggers, trainer):

def finish():
wandb.finish()
neptune.stop()
# neptune.stop()

0 comments on commit bcf4146

Please sign in to comment.