fix so that benchmarking load the latest experiment (#220)

This commit is contained in:
Ruilong Li(李瑞龙) authored and GitHub committed 2022-07-27 15:56:24 -07:00
1 parent af176ddf32
commit 31c813e0df
1 file changed
+1 -1
+1 -1
View File
@@ -52,7 +52,7 @@ def _load_hydra_config(hydra_dir: str) -> DictConfig:
Returns:
DictConfig: returns the loaded hydra dictionary config
"""
basename = os.listdir(hydra_dir)[0]
basename = sorted(os.listdir(hydra_dir))[-1]
hydra_dir = f"{hydra_dir}/{basename}"
initialize(version_base="1.2", config_path=os.path.join("../../", hydra_dir, ".hydra/"))
config = compose("config.yaml")