Rename test -> tests

这个提交包含在:
Cadene
2024-02-25 10:51:07 +00:00
父节点 598bb496b0
当前提交 6f5c731936
共有 4 个文件被更改,包括 0 次插入 和 0 次删除

11
tests/utils.py 普通文件
查看文件

@ -0,0 +1,11 @@
import hydra
from hydra import compose, initialize
CONFIG_PATH = "../lerobot/configs"
def init_config(config_name):
hydra.core.global_hydra.GlobalHydra.instance().clear()
initialize(config_path=CONFIG_PATH)
cfg = compose(config_name=config_name)
return cfg