mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
fix so that benchmarking load the latest experiment (#220)
This commit is contained in:
1 parent
af176ddf32
commit
31c813e0df
1 file changed
+1
-1
@@ -52,7 +52,7 @@ def _load_hydra_config(hydra_dir: str) -> DictConfig:
|
|||||||
Returns:
|
Returns:
|
||||||
DictConfig: returns the loaded hydra dictionary config
|
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}"
|
hydra_dir = f"{hydra_dir}/{basename}"
|
||||||
initialize(version_base="1.2", config_path=os.path.join("../../", hydra_dir, ".hydra/"))
|
initialize(version_base="1.2", config_path=os.path.join("../../", hydra_dir, ".hydra/"))
|
||||||
config = compose("config.yaml")
|
config = compose("config.yaml")
|
||||||
|
|||||||
Reference in new issue
Block a user