padiredd commited on
Commit
c711078
·
verified ·
1 Parent(s): 00602f7

Upload modality_config/ffw_bg2_pick_cube_3cam_config.py with huggingface_hub

Browse files
modality_config/ffw_bg2_pick_cube_3cam_config.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GR00T N1.7 modality config for the sim block-pick datasets (FFW BG2, LeRobot v2 after conversion).
2
+ # Copy of examples/CYCLO/ffw_sg2_rev1/ffw_sg2_rev1_config.py with two changes:
3
+ # - action = arm_left + arm_right only (our action vector is 16-dim, no head/lift/odometry)
4
+ # - state = arm_left + arm_right only (head/lift/odometry are constant in the sim data)
5
+
6
+ from gr00t.configs.data.embodiment_configs import register_modality_config
7
+ from gr00t.data.embodiment_tags import EmbodimentTag
8
+ from gr00t.data.types import (
9
+ ActionConfig,
10
+ ActionFormat,
11
+ ActionRepresentation,
12
+ ActionType,
13
+ ModalityConfig,
14
+ )
15
+
16
+
17
+ _ARM_KEYS = [
18
+ "arm_left",
19
+ "arm_right",
20
+ ]
21
+
22
+
23
+ ffw_bg2_pick_cube_3cam_config = {
24
+ "video": ModalityConfig(
25
+ delta_indices=[0],
26
+ modality_keys=[
27
+ "cam_left_head",
28
+ "cam_left_wrist",
29
+ "cam_right_wrist",
30
+ ],
31
+ ),
32
+ "state": ModalityConfig(
33
+ delta_indices=[0],
34
+ modality_keys=_ARM_KEYS,
35
+ ),
36
+ "action": ModalityConfig(
37
+ delta_indices=list(range(16)),
38
+ modality_keys=_ARM_KEYS,
39
+ action_configs=[
40
+ ActionConfig(
41
+ rep=ActionRepresentation.ABSOLUTE,
42
+ type=ActionType.NON_EEF,
43
+ format=ActionFormat.DEFAULT,
44
+ )
45
+ for _ in _ARM_KEYS
46
+ ],
47
+ ),
48
+ "language": ModalityConfig(
49
+ delta_indices=[0],
50
+ modality_keys=["annotation.human.primitive_instruction"],
51
+ ),
52
+ }
53
+
54
+
55
+ register_modality_config(ffw_bg2_pick_cube_3cam_config, embodiment_tag=EmbodimentTag.NEW_EMBODIMENT)