diff --git a/README.md b/README.md
index cbdc7a3..1fbd371 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ The directory structure of new project looks like this:
│ ├── datamodule <- Datamodule configs
│ ├── experiment <- Experiment configs
│ ├── hparams_search <- Hyperparameter search configs
-│ ├── hydra <- Hydra related configs
+│ ├── mode <- Running mode configs
│ ├── logger <- Logger configs
│ ├── model <- Model configs
│ ├── trainer <- Trainer configs
@@ -150,7 +150,6 @@ python run.py trainer.max_epochs=20 model.lr=1e-4
> You can also add new parameters with `+` sign.
```yaml
python run.py +model.new_param="uwu"
-
```
@@ -217,6 +216,21 @@ python run.py logger=wandb
+
+Use different logging modes
+
+```yaml
+# debug mode changes logging folder to `logs/debug/`
+python run.py mode=debug
+
+# experiment mode changes logging folder to `logs/experiments/name_of_your_experiment/`
+# also sets custom experiment name in the logger
+python run.py mode=exp name='my_new_experiment_253'
+```
+
+
+
+
Train model with chosen experiment config
@@ -269,7 +283,7 @@ python run.py +trainer.max_time="00:12:00:00"
```yaml
# run 1 train, val and test loop, using only 1 batch
-python run.py debug=true
+python run.py trainer.fast_dev_run=true
# print full weight summary of all PyTorch modules
python run.py trainer.weights_summary="full"
@@ -348,12 +362,12 @@ python run.py -m 'experiment=glob(*)'
-
+
@@ -433,7 +447,7 @@ defaults:
- callbacks: default.yaml # set this to null if you don't want to use callbacks
- logger: null # set logger here or use command line (e.g. `python run.py logger=wandb`)
- - hydra: default.yaml
+ - mode: default.yaml
- experiment: null
- hparams_search: null
@@ -598,13 +612,13 @@ By default, logs have the following structure:
│
```
-You can change this structure by modifying paths in [hydra configuration](configs/hydra/default.yaml).
+You can change this structure by modifying paths in [hydra configuration](configs/mode).
### Experiment Tracking
PyTorch Lightning supports the most popular logging frameworks:
-**[Weights&Biases](https://www.wandb.com/) · [Neptune](https://neptune.ai/) · [Comet](https://www.comet.ml/) · [MLFlow](https://mlflow.org) · [Aim](https://github.com/aimhubio/aim) · [Tensorboard](https://www.tensorflow.org/tensorboard/)**
+**[Weights&Biases](https://www.wandb.com/) · [Neptune](https://neptune.ai/) · [Comet](https://www.comet.ml/) · [MLFlow](https://mlflow.org) · [Tensorboard](https://www.tensorflow.org/tensorboard/)**
These tools help you keep track of hyperparameters and output metrics and allow you to compare and visualize results. To use one of them simply complete its configuration in [configs/logger](configs/logger) and run:
```yaml
@@ -684,7 +698,7 @@ hydra:
Next, you can execute it with: `python run.py -m hparams_search=mnist_optuna`
-Using this approach doesn't require you to add any boilerplate into your pipeline, everything is defined in a single config file. You can use different optimization frameworks integrated with Hydra, like Optuna, Ax or Nevergrad.
+Using this approach doesn't require you to add any boilerplate into your pipeline, everything is defined in a single config file. You can use different optimization frameworks integrated with Hydra, like Optuna, Ax or Nevergrad. The `optimization_results.yaml` will be available under `logs/multirun` folder.
@@ -801,23 +815,14 @@ python run.py trainer.gpus=4 +trainer.accelerator="ddp"
-### Extra Features
-List of extra utilities available in the template:
-- loading environment variables from [.env](.env.example) file
-- pretty printing config with [Rich](https://github.com/willmcgugan/rich) library
-- disabling python warnings
-- debug mode
-
-
-You can easily remove any of those by modifying [run.py](run.py) and [src/train.py](src/train.py).
+### Reproducibility
+To reproduce previous experiment, simply load its config from logs:
+```yaml
+python run.py --config-path /logs/runs/.../.hydra/ --config-name config.yaml
+```
+The `config.yaml` from `.hydra` folder contains all overriden parameters and sections.
-
-
## Best Practices