From 011f2d27febf57686fe5143a12ff6798a40e38c4 Mon Sep 17 00:00:00 2001 From: Alexander Soare Date: Tue, 26 Mar 2024 16:40:54 +0000 Subject: [PATCH] fix tests --- lerobot/common/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lerobot/common/utils.py b/lerobot/common/utils.py index 86383cdc..7ed29334 100644 --- a/lerobot/common/utils.py +++ b/lerobot/common/utils.py @@ -87,6 +87,8 @@ def init_hydra_config(config_path: str, overrides: list[str] | None = None) -> D For config resolution, it is assumed that the config file's parent is the Hydra config dir. """ + # TODO(alexander-soare): Resolve configs without Hydra initialization. + hydra.core.global_hydra.GlobalHydra.instance().clear() # Hydra needs a path relative to this file. hydra.initialize( str(_relative_path_between(Path(config_path).absolute().parent, Path(__file__).absolute().parent))