training with hydra works

This commit is contained in:
hobogalaxy committed 2021-01-06 02:49:30 +01:00
1 parent 9cffc61c20
commit 610117f161
27 files changed
+247 -430

No files matched your search

+1 -2
View File
@@ -1,9 +1,8 @@
# @package _group_
# train with all loggers at once
# Train with all loggers at once
defaults:
- comet
- csv_logger
- neptune
- tensorboard
- wandb
+1 -6
View File
@@ -1,13 +1,8 @@
# @package _group_
# Comet loggers config
# Comet logger config
comet:
class: pytorch_lightning.loggers.CometLogger
args:
api_key: ???
project_name: "project_template_test"
extra_options:
log_optimizer_name: True
log_train_val_test_sizes: True
+1 -4
View File
@@ -1,9 +1,6 @@
# @package _group_
# default loggers is just lightning CSVLogger which doesn't require any additional dependencies
# Csv logger config
csv_logger:
class: pytorch_lightning.loggers.CSVLogger
args: {}
extra_options: {}
-11
View File
@@ -1,11 +0,0 @@
# @package _group_
# Neptune loggers config
neptune:
class: pytorch_lightning.loggers.NeptuneLogger
args: {}
extra_options:
log_optimizer_name: True
log_train_val_test_sizes: True
+1 -4
View File
@@ -1,9 +1,6 @@
# @package _group_
# Tensorboard loggers config
# Tensorboard logger config
tensorboard:
class: pytorch_lightning.loggers.TensorboardLogger
args: {}
extra_options: {}
+20 -9
View File
@@ -1,16 +1,27 @@
# @package _group_
# Weights&Biases loggers config
# Weights&Biases logger config
wandb:
class: pytorch_lightning.loggers.WandbLogger
args:
project: "project_template_test"
entity: "" # 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
entity: "" # change to your username or name of your team on wandb
offline: False # set True to store all logs only locally
job_type: "train"
save_dir: ${paths.logs_dir}
extra_options:
log_gradients: False # set True to log gradient histograms (avoid this for very big models)
log_optimizer_name: True
log_train_val_test_sizes: True
# some extra things which will be logged by the environment
extra_logs:
watch_model: True # make wandb watch model
log_gradients: False # log gradient histograms (avoid this for very big models)
log_train_val_test_sizes: True # log sizes of train dataset, val dataset and test dataset
log_model_args: True # log
log_datamodule_args: True # log
log_optimizer_args: True # log
log_trainer_args: False # log
log_model_class_name: True
log_datamodule_class_name: True
log_optimizer_class_name: True