1
Fork 0

fix: rediect logs

This commit is contained in:
Tibo De Peuter 2026-04-15 18:44:37 +02:00
parent e40a4b979f
commit 07ae66b8ff
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
4 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View file

@ -4,6 +4,7 @@ runs/*
wandb/
outputs/
multirun/
metrics/
# Python-generated files
__pycache__/

View file

@ -49,4 +49,6 @@ python scripts/train.py --cfg job
- **Adding a new group**: Create a subdirectory in `configs/` and register the new dataclass in `src/brittle_star_project/configs/register_configs.py`.
- **Typo Catching**: If you see a `ConfigAttributeError`, check for typos in your YAML keys or CLI overrides.
- **Output Redirection**: Hydra automatically creates `outputs/` directories. On HPC, ensure `hydra.run.dir` is set to a fast scratch storage.
- **Output Redirection**: We use `experiment.base_run_dir` to configure where logs and models are stored (defaults to `runs/`).
- To change it locally: `python scripts/train.py experiment.base_run_dir=/path/to/custom/dir`
- On HPC, ensure this points to a fast scratch storage.

View file

@ -12,3 +12,9 @@ defaults:
- arena: default
- environment: directed_locomotion
- _self_
hydra:
job:
chdir: True
run:
dir: ${experiment.base_run_dir}/${experiment.exp_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}

View file

@ -8,3 +8,4 @@ class ExperimentConfig:
torch_deterministic: bool = True
cuda: bool = True
debug_sanity: bool = False
base_run_dir: str = "runs"