improvements...
This commit is contained in:
1 parent
fa8b9ecc16
commit
99ac2a9062
6 files changed
+108
-76
No files matched your search
+21
-10
@@ -1,11 +1,18 @@
|
||||
# default args passed to Lightning Trainer on every run/experiment
|
||||
# if you specify the same args in experiment config then they will overwrite the ones set here
|
||||
default_trainer_args:
|
||||
num_of_gpus: -1 # set -1 to train on all GPUs abailable, set 0 to train on CPU only
|
||||
num_of_gpus: 0 # set -1 to train on all GPUs abailable, set 0 to train on CPU only
|
||||
progress_bar_refresh_rate: 10 # refresh terminal every 10 batches
|
||||
weights_summary: "top" # print model summary (alternatively "full")
|
||||
|
||||
|
||||
# default pytorch seed used on every run/experiment
|
||||
# this can be overwritten by
|
||||
default_pytorch_seed:
|
||||
use_seed: True
|
||||
pytorch_seed: 1234
|
||||
|
||||
|
||||
# default loggers initialised on every run/experiment
|
||||
# if you specify this section in experiment config then it will be totally overwritten
|
||||
default_loggers:
|
||||
@@ -29,15 +36,19 @@ default_loggers:
|
||||
# if you specify the same callback class also in experiment config then it will overwrite the one set here
|
||||
# all of the callback parameters will be passed to it on initialization
|
||||
default_callbacks:
|
||||
ModelCheckpoint: # name of PyTorch Lightning class for checkpointing callback
|
||||
monitor: "val_acc" # name of the logged metric which determines when model is improving
|
||||
save_top_k: 1 # save k best lightning_models (determined by above metric)
|
||||
save_last: True # additionaly always save model from last epoch
|
||||
mode: "max" # can be "max" or "min"
|
||||
EarlyStopping: # name of PyTorch Lightning class for early stopping callback
|
||||
monitor: "val_acc" # name of the logged metric which determines when model is improving
|
||||
patience: 5 # how many epochs of not improving until training stops
|
||||
mode: "max" # can be "max" or "min"
|
||||
chekpointing:
|
||||
class: "pytorch_lightning.callbacks.ModelCheckpoint"
|
||||
args:
|
||||
monitor: "val_acc" # name of the logged metric which determines when model is improving
|
||||
save_top_k: 1 # save k best lightning_models (determined by above metric)
|
||||
save_last: True # additionaly always save model from last epoch
|
||||
mode: "max" # can be "max" or "min"
|
||||
early_stopping:
|
||||
class: "pytorch_lightning.callbacks.EarlyStopping"
|
||||
args:
|
||||
monitor: "val_acc" # name of the logged metric which determines when model is improving
|
||||
patience: 5 # how many epochs of not improving until training stops
|
||||
mode: "max" # can be "max" or "min"
|
||||
|
||||
|
||||
# use profiler to print execution time profiling after training ends
|
||||
|
||||
Reference in new issue
Block a user