* make debug mode automatically set level of all command line loggers to `DEBUG`
* make debug mode automatically set the trainer config to `debug.yaml`
* add generator seed to fix test data leaking to train data in datamodule `setup()`
* move Dockerfile to `dockerfiles` branch
* update README.md
This commit is contained in:
Łukasz Zalewski authored and GitHub committed 2021-10-12 15:32:19 +02:00
1 parent e34ccb0acf
commit eee3f9ccd3
11 files changed
+72 -101

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ defaults:
# path to original working directory
# hydra hijacks working directory by changing it to the current log directory,
# so it's useful to have this path as a special variable
# learn more here: https://hydra.cc/docs/next/tutorials/basic/running_your_app/working_directory
# https://hydra.cc/docs/next/tutorials/basic/running_your_app/working_directory
work_dir: ${hydra:runtime.cwd}
# path to folder with data
+15 -3
View File
@@ -3,13 +3,25 @@
# run in debug mode with:
# `python run.py mode=debug`
# this flag doesn't really do anything
debug: true
defaults:
- override /trainer: debug.yaml
debug_mode: True
# output paths for debug mode
hydra:
# sets level of all command line loggers to 'DEBUG'
verbose: True
# https://hydra.cc/docs/tutorials/basic/running_your_app/logging/
# sets level of only chosen command line loggers to 'DEBUG'
# verbose: [src.train, src.utils.utils]
# sets output paths for all file logs to 'logs/debug/'
run:
dir: logs/debug/${now:%Y-%m-%d}/${now:%H-%M-%S}
sweep:
dir: logs/debug/multirun_${now:%Y-%m-%d_%H-%M-%S}
subdir: ${hydra.job.num}
# disable rich config printing, since it will be already printed by hydra when `verbose: True`
print_config: False
+3 -1
View File
@@ -2,8 +2,10 @@
# default running mode
# default output paths for hydra logs
default_mode: True
hydra:
# default output paths for all file logs
run:
dir: logs/runs/${now:%Y-%m-%d}/${now:%H-%M-%S}
sweep:
+4 -2
View File
@@ -1,13 +1,15 @@
# @package _global_
# run in experiment mode with:
# python run.py mode=exp name='my_new_experiment_23'
# `python run.py mode=exp name=experiment_name`
experiment_mode: True
# allows for custom naming of the experiment
name: ???
# output paths for experiment mode
hydra:
# sets output paths for all file logs to `logs/experiment/name'
run:
dir: logs/experiments/${name}
sweep:
+1 -1
View File
@@ -9,7 +9,7 @@ max_epochs: 2
# prints
progress_bar_refresh_rate: null
weights_summary: "full"
profiler: "simple"
profiler: null
# debugs
fast_dev_run: true