Skip to content

Commit 2ad91e1

Browse files
committed
Remove keyframes from training G1 spec
1 parent 81a0ace commit 2ad91e1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_train_script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ def test_make_g1_training_robot_cfg_uses_requested_xml() -> None:
258258

259259
assert isinstance(robot_cfg.spec_fn, partial)
260260
assert robot_cfg.spec_fn.args == (xml_path,)
261+
spec = robot_cfg.spec_fn()
262+
assert len(spec.actuators) == 0
263+
assert len(spec.keys) == 0
261264

262265

263266
def test_validate_motion_file_accepts_shard_directories(tmp_path: Path) -> None:

train_mimic/tasks/tracking/config/env.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def _get_g1_training_spec(robot_xml: str | Path | None = None) -> mujoco.MjSpec:
6969
spec = mujoco.MjSpec.from_file(str(xml_path))
7070
for actuator in list(spec.actuators):
7171
spec.delete(actuator)
72+
for key in list(spec.keys):
73+
spec.delete(key)
7274
return spec
7375

7476

0 commit comments

Comments
 (0)