Download code/hb_groot/h2_body31_hand44_h32.py from humanoid-benchmark/groot: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/humanoid-benchmark/groot/resolve/main/code/hb_groot/h2_body31_hand44_h32.py
- Command line
-
hf download hf://humanoid-benchmark/groot/code/hb_groot/h2_body31_hand44_h32.py
-
curl -L -o h2_body31_hand44_h32.py https://huggingface.co/humanoid-benchmark/groot/resolve/main/code/hb_groot/h2_body31_hand44_h32.py
1.46 kB
| """2026-11-15 user: action horizon 32 copy of h2_body31_hand44_h16.py. A18 H2 (Sharpa hands) GR00T modality config, same protocol as the A18 Delta-flow run | |
| (schema a18-h2-sharpa-body31-hand44-state78-chunk16-v1): cameras head+chest, state = 75 joints + projected | |
| gravity, action = action.body_target (31) + action.hands (44), horizon 16, absolute targets.""" | |
| from gr00t.configs.data.embodiment_configs import register_modality_config | |
| from gr00t.data.embodiment_tags import EmbodimentTag | |
| from gr00t.data.types import ActionConfig, ActionFormat, ActionRepresentation, ActionType, ModalityConfig | |
| h2_body31_hand44_h32 = { | |
| "video": ModalityConfig(delta_indices=[0], modality_keys=["head", "chest"]), | |
| "state": ModalityConfig( | |
| delta_indices=[0], | |
| modality_keys=["left_leg", "right_leg", "waist", "left_arm", "right_arm", "head", "left_hand", "right_hand", | |
| "projected_gravity"], | |
| ), | |
| "action": ModalityConfig( | |
| delta_indices=list(range(32)), | |
| modality_keys=["body_target", "left_hand_target", "right_hand_target"], | |
| action_configs=[ActionConfig(rep=ActionRepresentation.ABSOLUTE, type=ActionType.NON_EEF, | |
| format=ActionFormat.DEFAULT) for _ in range(3)], | |
| ), | |
| "language": ModalityConfig(delta_indices=[0], modality_keys=["annotation.human.task_description"]), | |
| } | |
| register_modality_config(h2_body31_hand44_h32, embodiment_tag=EmbodimentTag.NEW_EMBODIMENT) | |