12 lines
323 B
Python
12 lines
323 B
Python
import hydra
|
|
from hydra import compose, initialize
|
|
|
|
CONFIG_PATH = "../lerobot/configs"
|
|
|
|
|
|
def init_config(config_name="default", overrides=None):
|
|
hydra.core.global_hydra.GlobalHydra.instance().clear()
|
|
initialize(config_path=CONFIG_PATH)
|
|
cfg = compose(config_name=config_name, overrides=overrides)
|
|
return cfg
|