Release/1.1 (#174)

* introduce different running modes: default, debug, experiment
* fix pytorch installation in setup_conda.sh
* fix incorrect calculation of precision, recall and f1 score in wandb callback
* add `_self_` to config.yaml for compatibility with hydra1.1
* fix setting seed in `train.py` so it's skipped when `seed=null`
* add exception message when trying to use wandb callbacks with `trainer.fast_dev_run=true`
* change `axis=-1` to `dim=-1` in LogImagePredictions callback
* add 'Reproducibilty' section to README.md
This commit is contained in:
Łukasz Zalewski authored and GitHub committed 2021-09-28 20:07:40 +02:00
1 parent 89b502b090
commit 86f30fb320
19 files changed
+131 -81

No files matched your search

+10 -9
View File
@@ -2,17 +2,18 @@
# specify here default training configuration
defaults:
- _self_
- trainer: default.yaml
- model: mnist_model.yaml
- datamodule: mnist_datamodule.yaml
- callbacks: default.yaml # set this to null if you don't want to use callbacks
- callbacks: default.yaml
- logger: null # set logger here or use command line (e.g. `python run.py logger=wandb`)
- mode: default.yaml
- experiment: null
- hparams_search: null
- hydra: default.yaml
# enable color logging
- override hydra/hydra_logging: colorlog
- override hydra/job_logging: colorlog
@@ -26,12 +27,6 @@ work_dir: ${hydra:runtime.cwd}
# path to folder with data
data_dir: ${work_dir}/data/
# use `python run.py debug=true` for easy debugging!
# this will run 1 train, val and test loop with only 1 batch
# equivalent to running `python run.py trainer.fast_dev_run=true`
# (this is placed here just for easier access from command line)
debug: False
# pretty print config at the start of the run using Rich library
print_config: True
@@ -41,3 +36,9 @@ ignore_warnings: True
# check performance on test set, using the best model achieved during training
# lightning chooses best model based on metric specified in checkpoint callback
test_after_training: True
# seed for random number generators in pytorch, numpy and python.random
seed: null
# name of the run, accessed by loggers
name: null