summaryrefslogtreecommitdiff
path: root/training/main.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-02 02:55:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-02 02:55:53 +0200
commit2f19e8b863c54d16c1eb855bc89391063def15ce (patch)
treee1d42dd4ad216d0c406c2bc2e5a4310323a17570 /training/main.py
parent7d06b7a23fb6340bdf2d2ddee0941ae8c8ee4217 (diff)
Add support for hydra 1.2, add metadata file
Diffstat (limited to 'training/main.py')
-rw-r--r--training/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/training/main.py b/training/main.py
index 26d5aeb..6e54a23 100644
--- a/training/main.py
+++ b/training/main.py
@@ -1,9 +1,10 @@
"""Loads config with hydra and runs experiment."""
import hydra
from omegaconf import DictConfig
+from training.metadata import TRAINING_DIR
-@hydra.main(config_path="conf", config_name="config")
+@hydra.main(version_base="1.2", config_path=TRAINING_DIR / "conf", config_name="config")
def main(config: DictConfig) -> None:
"""Loads config with hydra and runs the experiment."""
import utils