Multiple pipelines - training and evaluation (#250)
- introduce best practice for multiple pipelines - Implement evaluation pipeline - allow for using relative ckpt paths - general refactoring - update README.md
This commit is contained in:
1 parent
02d3b65aaa
commit
fe4e61edc1
25 files changed
+347
-185
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# @package _global_
|
||||
|
||||
# default debugging setup, runs 1 full epoch
|
||||
# other debugging configs can inherit from this one
|
||||
|
||||
defaults:
|
||||
- override /log_dir: debug.yaml
|
||||
@@ -8,19 +9,19 @@ defaults:
|
||||
trainer:
|
||||
max_epochs: 1
|
||||
gpus: 0 # debuggers don't like gpus
|
||||
detect_anomaly: true
|
||||
track_grad_norm: 2
|
||||
detect_anomaly: true # raise exception if NaN or +/-inf is detected in any tensor
|
||||
track_grad_norm: 2 # track gradient norm with loggers
|
||||
|
||||
datamodule:
|
||||
num_workers: 0 # debuggers don't like multiprocessing
|
||||
pin_memory: False
|
||||
pin_memory: False # disable gpu memory pin
|
||||
|
||||
# sets level of all command line loggers to 'DEBUG'
|
||||
# https://hydra.cc/docs/tutorials/basic/running_your_app/logging/
|
||||
hydra:
|
||||
verbose: True
|
||||
|
||||
# use this to set level of only chosen command line loggers to 'DEBUG'
|
||||
# use this to set level of only chosen command line loggers to 'DEBUG':
|
||||
# verbose: [src.train, src.utils]
|
||||
|
||||
# config is already printed by hydra when `hydra/verbose: True`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs by using only 1% of the data
|
||||
# uses only 1% of the training data and 5% of validation/test data
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
@@ -8,5 +8,5 @@ defaults:
|
||||
trainer:
|
||||
max_epochs: 3
|
||||
limit_train_batches: 0.01
|
||||
limit_val_batches: 0.01
|
||||
limit_test_batches: 0.01
|
||||
limit_val_batches: 0.05
|
||||
limit_test_batches: 0.05
|
||||
@@ -1,6 +1,6 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs with execution time profiling
|
||||
# runs with execution time profiling
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs by running 1 train, 1 validation and 1 test step
|
||||
# runs 1 train, 1 validation and 1 test step
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs by running only test epoch
|
||||
# runs only test epoch
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
train: False
|
||||
test_after_training: True
|
||||
test: True
|
||||
Reference in new issue
Block a user