start redesigning project structure for version 4.0
This commit is contained in:
1 parent
42652e3752
commit
fa8b9ecc16
18 files changed
+140
-130
No files matched your search
+30
-19
@@ -1,26 +1,37 @@
|
||||
# set -1 to train on all GPUs abailable, set 0 to train on CPU only
|
||||
num_of_gpus: -1
|
||||
# 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
|
||||
progress_bar_refresh_rate: 10 # refresh terminal every 10 batches
|
||||
weights_summary: "top" # print model summary (alternatively "full")
|
||||
|
||||
|
||||
# Weights&Biases configuration (just remove this section if you don't want tu use Weights&Biases)
|
||||
loggers:
|
||||
wandb:
|
||||
project: "project_template_test"
|
||||
entity: "kino" # change to your username or name of your team on wandb
|
||||
log_model: True # set True to automatically upload model checkpoint to wandb cloud after training
|
||||
log_gradients: False # set True to log gradient histograms (avoid this for very big models)
|
||||
offline: False # set True to store all logs only locally
|
||||
# default loggers initialised on every run/experiment
|
||||
# if you specify this section in experiment config then it will be totally overwritten
|
||||
default_loggers:
|
||||
wandb: # Weights&Biases config (just remove this section if you don't want tu ever use Weights&Biases)
|
||||
use_wandb: True
|
||||
log_gradients: False # set True to log gradient histograms (avoid this for very big lightning_models)
|
||||
log_optimizer_name: True
|
||||
log_train_val_test_data_lengths: True
|
||||
default_args:
|
||||
project: "project_template_test"
|
||||
entity: "kino" # change to your username or name of your team on wandb
|
||||
log_model: True # set True to automatically upload model checkpoint to wandb cloud after training
|
||||
offline: False # set True to store all logs only locally
|
||||
tensorboard:
|
||||
use_tensorboard: False
|
||||
default_args: {}
|
||||
|
||||
|
||||
# default callbacks initialised on every run/experiment
|
||||
# default lightning_callbacks initialised on every run/experiment
|
||||
# you can just remove this section or certain callback if you don't want tu use it
|
||||
# you can add here any callback class available in PyTorch Lightning or template_utils/callbacks.py
|
||||
# if you specify the same callback class also in run config then it will overwrite the one set here
|
||||
# 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 models (determined by above metric)
|
||||
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
|
||||
@@ -29,11 +40,11 @@ default_callbacks:
|
||||
mode: "max" # can be "max" or "min"
|
||||
|
||||
|
||||
# configure things which are printed in terminal
|
||||
printing:
|
||||
progress_bar_refresh_rate: 10 # refresh every 10 batches
|
||||
weights_summary: "top" # print model summary (alternatively "full")
|
||||
profiler: False # set True to print execution time profiling after training ends
|
||||
# use profiler to print execution time profiling after training ends
|
||||
profiler:
|
||||
use_profiler: True
|
||||
class: "pytorch_lightning.profiler.SimpleProfiler"
|
||||
args: {}
|
||||
|
||||
|
||||
# path to data folder (either absolute or relative to placement of 'train.py' file)
|
||||
|
||||
Reference in new issue
Block a user