Refactoring configs (#248)

- make every run be an experiment by default
- deprecate `mode` configs
- introduce `debug` configs
- introduce `log_dir` configs
- remove unnecessary utilities from `utils.extras()`
- add config flag for skipping training
- update README.md
This commit is contained in:
ashleve authored and GitHub committed 2022-02-18 01:38:04 +01:00
1 parent 2ff8e053bf
commit 19f5454d13
27 files changed
+210 -238

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# @package _global_
# default debugging setup, runs 1 full epoch
defaults:
- override /log_dir: debug.yaml
trainer:
max_epochs: 1
gpus: 0 # debuggers don't like gpus
detect_anomaly: true
track_grad_norm: 2
datamodule:
num_workers: 0 # debuggers don't like multiprocessing
pin_memory: False
# 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'
# verbose: [src.train, src.utils]
# config is already printed by hydra when `hydra/verbose: True`
print_config: False