HSM1 commited on
Commit
2c5380c
·
verified ·
1 Parent(s): 79e9fce

Upload 100000 checkpoint

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ media/rollouts.gif filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: lerobot
4
+ pipeline_tag: robotics
5
+ tags:
6
+ - lerobot
7
+ - diffusion-policy
8
+ - robotics
9
+ - bimanual
10
+ - mujoco
11
+ - imitation-learning
12
+ ---
13
+
14
+ # Bimanual puzzle pushing: Diffusion Policy
15
+
16
+ This is the policy I trained for my [puzzleBimanual](https://github.com/HarunSMetin/puzzleBimanual)
17
+ project. Two Franka Panda arms with stick end-effectors stand on either side of a table in
18
+ MuJoCo. Each arm pushes one half of a randomly cut puzzle, and the goal is to push the two halves
19
+ together until they fit into one rectangle. There is no target marker, so the policy has to work
20
+ out from the shapes alone how the pieces go together.
21
+
22
+ <p align="center">
23
+ <img src="media/rollouts.gif" width="640" alt="Two rollouts on unseen puzzles">
24
+ <br><em>Two rollouts on test puzzles. Each row shows the top camera and both wrist cameras.</em>
25
+ </p>
26
+
27
+ ## Results
28
+
29
+ I tested the policy in the simulator on puzzles that were never used in training. An episode
30
+ counts as a success when the pieces are within 5 mm and 4° of the mated pose and stay there for
31
+ half a second, which is the same rule I used when recording the demonstrations.
32
+
33
+ | Split | Puzzles | Success | 95% CI |
34
+ |---|---|---|---|
35
+ | dev (used to pick this checkpoint) | 50 | 88% | 76–94% |
36
+ | test (evaluated once) | 200 | **82%** | 76–87% |
37
+
38
+ When the policy fails, it's mostly because the pieces never got close: in 30 of the 36 failed
39
+ test episodes they never came within 2 cm of the mated pose. Getting stuck on the final
40
+ alignment is rare (3 episodes). Once the pieces are
41
+ close, it usually finishes: the median final error in successful episodes is about 2 mm.
42
+
43
+ ## What the policy sees and does
44
+
45
+ - **Inputs**: three 240×320 RGB cameras (a top view and one camera on each wrist) and an
46
+ 18-number robot state (tip x, y and seven joint angles per arm), with the last 2 frames as
47
+ context. The piece poses are not given to the policy; it has to see the pieces.
48
+ - **Output**: absolute x, y targets for the two stick tips, 4 numbers per step at 20 Hz. The
49
+ policy predicts 16 steps and executes 8 (0.4 s) before planning again.
50
+ - **Model**: LeRobot's Diffusion Policy with a separate ResNet18 encoder per camera and a 1D
51
+ U-Net with channels [256, 512, 1024]. 103M parameters in total. DDIM with 10 denoising
52
+ steps at inference.
53
+
54
+ ## Training data and setup
55
+
56
+ I recorded 217 demonstrations myself with a DualShock 4 (one stick per arm), about 50 minutes
57
+ in total. A processing step removed the pauses in each arm's motion and added mirrored and
58
+ rotated copies of every demonstration, which gave 797 episodes. Every episode has a different
59
+ random puzzle.
60
+
61
+ Training ran for 100k steps with batch size 32 and mixed precision on a laptop RTX 4050 (6 GB),
62
+ which took about 12 hours. I compared the 50k, 70k and 100k checkpoints on the same 50 dev
63
+ puzzles (64%, 70% and 88%) and kept the last one.
64
+
65
+ ## How to use it
66
+
67
+ The simulator and evaluation code live in the GitHub repository. You don't need the dataset;
68
+ the files here include everything the evaluation needs (`eval_profile.json` holds the camera
69
+ setup and the training seeds, so evaluation puzzles never overlap with training).
70
+
71
+ ```bash
72
+ git clone https://github.com/HarunSMetin/puzzleBimanual.git
73
+ cd puzzleBimanual
74
+ uv sync
75
+ uv run python scripts/eval_policy.py --checkpoint HSM1/puzzle-bimanual-diffusion --episodes 20
76
+ ```
77
+
78
+ It runs on a GPU if there is one and on the CPU otherwise (much slower). Results and videos
79
+ go to `outputs/eval/`.
80
+
81
+ ## Limitations
82
+
83
+ This policy only knows this simulated scene: the table, the arm placement, the camera positions
84
+ and the puzzle generator's shapes. It has not been tried on a real robot. Rollouts are also not
85
+ exactly repeatable, because tiny rendering differences between runs grow into different pushes,
86
+ so compare success rates over many puzzles rather than single episodes.
config.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 18
9
+ ]
10
+ },
11
+ "observation.images.top": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 240,
16
+ 320
17
+ ]
18
+ },
19
+ "observation.images.left_wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 240,
24
+ 320
25
+ ]
26
+ },
27
+ "observation.images.right_wrist": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 240,
32
+ 320
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 4
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": true,
46
+ "use_peft": false,
47
+ "push_to_hub": false,
48
+ "repo_id": null,
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": null,
53
+ "pretrained_revision": null,
54
+ "horizon": 16,
55
+ "n_action_steps": 8,
56
+ "normalization_mapping": {
57
+ "VISUAL": "MEAN_STD",
58
+ "STATE": "MIN_MAX",
59
+ "ACTION": "MIN_MAX"
60
+ },
61
+ "drop_n_last_frames": 7,
62
+ "vision_backbone": "resnet18",
63
+ "resize_shape": null,
64
+ "crop_ratio": 1.0,
65
+ "crop_shape": [
66
+ 216,
67
+ 288
68
+ ],
69
+ "crop_is_random": true,
70
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
71
+ "use_group_norm": false,
72
+ "spatial_softmax_num_keypoints": 32,
73
+ "use_separate_rgb_encoder_per_camera": true,
74
+ "down_dims": [
75
+ 256,
76
+ 512,
77
+ 1024
78
+ ],
79
+ "kernel_size": 5,
80
+ "n_groups": 8,
81
+ "diffusion_step_embed_dim": 128,
82
+ "use_film_scale_modulation": true,
83
+ "gradient_checkpointing": false,
84
+ "noise_scheduler_type": "DDIM",
85
+ "num_train_timesteps": 100,
86
+ "beta_schedule": "squaredcos_cap_v2",
87
+ "beta_start": 0.0001,
88
+ "beta_end": 0.02,
89
+ "prediction_type": "epsilon",
90
+ "clip_sample": true,
91
+ "clip_sample_range": 1.0,
92
+ "num_inference_steps": 10,
93
+ "compile_model": false,
94
+ "compile_mode": "reduce-overhead",
95
+ "do_mask_loss_for_padding": false,
96
+ "optimizer_lr": 0.0001,
97
+ "optimizer_betas": [
98
+ 0.95,
99
+ 0.999
100
+ ],
101
+ "optimizer_eps": 1e-08,
102
+ "optimizer_weight_decay": 1e-06,
103
+ "scheduler_name": "cosine",
104
+ "scheduler_warmup_steps": 500
105
+ }
eval_profile.json ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "profile": {
3
+ "task": "Push the two puzzle pieces together so they fit into one rectangle.",
4
+ "image_size": [
5
+ 240,
6
+ 320
7
+ ],
8
+ "cameras": {
9
+ "top": {
10
+ "pos": [
11
+ 0.0,
12
+ 0.0,
13
+ 0.85
14
+ ],
15
+ "lookat": [
16
+ 0.0,
17
+ 0.0,
18
+ 0.0
19
+ ],
20
+ "up": [
21
+ 0.0,
22
+ 1.0,
23
+ 0.0
24
+ ],
25
+ "fovy": 45
26
+ },
27
+ "left_wrist": {
28
+ "body": "left_hand",
29
+ "pos": [
30
+ -0.08,
31
+ 0.0,
32
+ 0.08
33
+ ],
34
+ "lookat": [
35
+ 0.1,
36
+ 0.0,
37
+ 0.2
38
+ ],
39
+ "up": [
40
+ 0.0,
41
+ 0.0,
42
+ -1.0
43
+ ],
44
+ "fovy": 90
45
+ },
46
+ "right_wrist": {
47
+ "body": "right_hand",
48
+ "pos": [
49
+ -0.08,
50
+ 0.0,
51
+ 0.08
52
+ ],
53
+ "lookat": [
54
+ 0.1,
55
+ 0.0,
56
+ 0.2
57
+ ],
58
+ "up": [
59
+ 0.0,
60
+ 0.0,
61
+ -1.0
62
+ ],
63
+ "fovy": 90
64
+ }
65
+ }
66
+ },
67
+ "training_seeds": [
68
+ 12028509,
69
+ 20601358,
70
+ 23801677,
71
+ 25683142,
72
+ 25692361,
73
+ 43779169,
74
+ 66429433,
75
+ 108900320,
76
+ 124137339,
77
+ 126500499,
78
+ 131099074,
79
+ 132355821,
80
+ 145108040,
81
+ 146520148,
82
+ 160963281,
83
+ 162782454,
84
+ 168038232,
85
+ 179966057,
86
+ 188119339,
87
+ 227450912,
88
+ 241231647,
89
+ 243663250,
90
+ 253013083,
91
+ 258127594,
92
+ 263002108,
93
+ 283931877,
94
+ 289978712,
95
+ 308477138,
96
+ 322224297,
97
+ 328507075,
98
+ 364618648,
99
+ 373686606,
100
+ 395149279,
101
+ 406299962,
102
+ 410021292,
103
+ 422382219,
104
+ 425134518,
105
+ 436648182,
106
+ 470213788,
107
+ 490995676,
108
+ 499350383,
109
+ 500388152,
110
+ 501539276,
111
+ 506723995,
112
+ 508030765,
113
+ 543183270,
114
+ 569638916,
115
+ 578220624,
116
+ 598463260,
117
+ 601084775,
118
+ 620675224,
119
+ 624373224,
120
+ 625812800,
121
+ 632450625,
122
+ 632771102,
123
+ 636599108,
124
+ 659982646,
125
+ 691671442,
126
+ 708391640,
127
+ 710108672,
128
+ 710332091,
129
+ 713252927,
130
+ 714116022,
131
+ 714866032,
132
+ 726749891,
133
+ 765250386,
134
+ 813436240,
135
+ 815033438,
136
+ 815924988,
137
+ 839812273,
138
+ 847498665,
139
+ 858974136,
140
+ 879424295,
141
+ 909378324,
142
+ 915802576,
143
+ 941675750,
144
+ 964172386,
145
+ 964543550,
146
+ 965086662,
147
+ 970019947,
148
+ 979221494,
149
+ 1004759742,
150
+ 1025236119,
151
+ 1028979965,
152
+ 1034477576,
153
+ 1043759268,
154
+ 1045740737,
155
+ 1056971393,
156
+ 1067787926,
157
+ 1070837443,
158
+ 1073289052,
159
+ 1079791751,
160
+ 1091655952,
161
+ 1094839739,
162
+ 1098999966,
163
+ 1107072218,
164
+ 1108731791,
165
+ 1109767066,
166
+ 1114447069,
167
+ 1122268946,
168
+ 1127848354,
169
+ 1131812424,
170
+ 1137151720,
171
+ 1146141383,
172
+ 1149343864,
173
+ 1151645310,
174
+ 1157473353,
175
+ 1161513287,
176
+ 1174215047,
177
+ 1194203245,
178
+ 1195894527,
179
+ 1205912179,
180
+ 1206838930,
181
+ 1208487248,
182
+ 1220156506,
183
+ 1247921214,
184
+ 1250401226,
185
+ 1251154183,
186
+ 1255069804,
187
+ 1280208446,
188
+ 1282509212,
189
+ 1305098747,
190
+ 1330137458,
191
+ 1332697375,
192
+ 1350000524,
193
+ 1362940859,
194
+ 1366581455,
195
+ 1367897481,
196
+ 1369672754,
197
+ 1370830013,
198
+ 1387444039,
199
+ 1391136667,
200
+ 1402239636,
201
+ 1404889105,
202
+ 1411408806,
203
+ 1411569236,
204
+ 1415229497,
205
+ 1416993533,
206
+ 1438156149,
207
+ 1444890860,
208
+ 1446097750,
209
+ 1451178558,
210
+ 1453933600,
211
+ 1454293819,
212
+ 1456275504,
213
+ 1457156555,
214
+ 1460740608,
215
+ 1471581390,
216
+ 1477781620,
217
+ 1478884149,
218
+ 1481559368,
219
+ 1490495337,
220
+ 1509650080,
221
+ 1514522256,
222
+ 1537489219,
223
+ 1552091886,
224
+ 1563744178,
225
+ 1568231659,
226
+ 1573438767,
227
+ 1578294930,
228
+ 1584534039,
229
+ 1590425740,
230
+ 1625457664,
231
+ 1625984261,
232
+ 1626146277,
233
+ 1634076724,
234
+ 1653484029,
235
+ 1657090042,
236
+ 1671439209,
237
+ 1679564793,
238
+ 1693046931,
239
+ 1707298455,
240
+ 1707578919,
241
+ 1715149367,
242
+ 1719931647,
243
+ 1730832604,
244
+ 1734572355,
245
+ 1742990303,
246
+ 1747236156,
247
+ 1774832701,
248
+ 1777842383,
249
+ 1784658559,
250
+ 1787538022,
251
+ 1790246388,
252
+ 1797078623,
253
+ 1800201016,
254
+ 1803759826,
255
+ 1808910250,
256
+ 1833013532,
257
+ 1844796784,
258
+ 1851223911,
259
+ 1861085964,
260
+ 1874451705,
261
+ 1876145536,
262
+ 1891028584,
263
+ 1898577441,
264
+ 1906197421,
265
+ 1907063253,
266
+ 1911760782,
267
+ 1918871774,
268
+ 1922540413,
269
+ 1926264395,
270
+ 1943839865,
271
+ 1946496894,
272
+ 1963587247,
273
+ 1976819248,
274
+ 1982099574,
275
+ 2015986824,
276
+ 2019737030,
277
+ 2045507156,
278
+ 2046666581,
279
+ 2060815008,
280
+ 2085704634,
281
+ 2092512430,
282
+ 2105038603,
283
+ 2116958770,
284
+ 2133164780
285
+ ]
286
+ }
media/rollouts.gif ADDED

Git LFS Details

  • SHA256: 4c566b2404eaa16ef31b9f77994ee1911e05f43b2f634305dd1996b3311aa0b4
  • Pointer size: 132 Bytes
  • Size of remote file: 2.72 MB
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7845e4c01a0e299bbffbbf8c78146f1cb2779e65c1f9d4adcf583ed2a871949a
3
+ size 410567112
policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "unnormalizer_processor",
6
+ "config": {
7
+ "eps": 1e-08,
8
+ "features": {
9
+ "action": {
10
+ "type": "ACTION",
11
+ "shape": [
12
+ 4
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "MIN_MAX",
19
+ "ACTION": "MIN_MAX"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "device_processor",
26
+ "config": {
27
+ "device": "cpu",
28
+ "float_dtype": null
29
+ }
30
+ }
31
+ ]
32
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9524edb58d656c0fed00a942aa2770f7923be41e6427d95b85d963bc2abdc5f9
3
+ size 10568
policy_preprocessor.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {}
8
+ }
9
+ },
10
+ {
11
+ "registry_name": "to_batch_processor",
12
+ "config": {}
13
+ },
14
+ {
15
+ "registry_name": "device_processor",
16
+ "config": {
17
+ "device": "cuda",
18
+ "float_dtype": null
19
+ }
20
+ },
21
+ {
22
+ "registry_name": "normalizer_processor",
23
+ "config": {
24
+ "eps": 1e-08,
25
+ "features": {
26
+ "observation.state": {
27
+ "type": "STATE",
28
+ "shape": [
29
+ 18
30
+ ]
31
+ },
32
+ "observation.images.top": {
33
+ "type": "VISUAL",
34
+ "shape": [
35
+ 3,
36
+ 240,
37
+ 320
38
+ ]
39
+ },
40
+ "observation.images.left_wrist": {
41
+ "type": "VISUAL",
42
+ "shape": [
43
+ 3,
44
+ 240,
45
+ 320
46
+ ]
47
+ },
48
+ "observation.images.right_wrist": {
49
+ "type": "VISUAL",
50
+ "shape": [
51
+ 3,
52
+ 240,
53
+ 320
54
+ ]
55
+ },
56
+ "action": {
57
+ "type": "ACTION",
58
+ "shape": [
59
+ 4
60
+ ]
61
+ }
62
+ },
63
+ "norm_map": {
64
+ "VISUAL": "MEAN_STD",
65
+ "STATE": "MIN_MAX",
66
+ "ACTION": "MIN_MAX"
67
+ }
68
+ },
69
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
70
+ }
71
+ ]
72
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:200ed1d12687223b3f489d68dfd3ae9a9c4520e6346ec0025e99b87558949d37
3
+ size 10576
train_config.json ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "local/puzzle_bimanual_top_wrists",
4
+ "repo_type": "dataset",
5
+ "root": "datasets/lerobot/puzzle_bimanual_top_wrists",
6
+ "episodes": null,
7
+ "image_transforms": {
8
+ "enable": false,
9
+ "max_num_transforms": 3,
10
+ "random_order": false,
11
+ "tfs": {
12
+ "brightness": {
13
+ "weight": 1.0,
14
+ "type": "ColorJitter",
15
+ "kwargs": {
16
+ "brightness": [
17
+ 0.8,
18
+ 1.2
19
+ ]
20
+ }
21
+ },
22
+ "contrast": {
23
+ "weight": 1.0,
24
+ "type": "ColorJitter",
25
+ "kwargs": {
26
+ "contrast": [
27
+ 0.8,
28
+ 1.2
29
+ ]
30
+ }
31
+ },
32
+ "saturation": {
33
+ "weight": 1.0,
34
+ "type": "ColorJitter",
35
+ "kwargs": {
36
+ "saturation": [
37
+ 0.5,
38
+ 1.5
39
+ ]
40
+ }
41
+ },
42
+ "hue": {
43
+ "weight": 1.0,
44
+ "type": "ColorJitter",
45
+ "kwargs": {
46
+ "hue": [
47
+ -0.05,
48
+ 0.05
49
+ ]
50
+ }
51
+ },
52
+ "sharpness": {
53
+ "weight": 1.0,
54
+ "type": "SharpnessJitter",
55
+ "kwargs": {
56
+ "sharpness": [
57
+ 0.5,
58
+ 1.5
59
+ ]
60
+ }
61
+ },
62
+ "affine": {
63
+ "weight": 1.0,
64
+ "type": "RandomAffine",
65
+ "kwargs": {
66
+ "degrees": [
67
+ -5.0,
68
+ 5.0
69
+ ],
70
+ "translate": [
71
+ 0.05,
72
+ 0.05
73
+ ]
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "revision": null,
79
+ "use_imagenet_stats": true,
80
+ "video_backend": "torchcodec",
81
+ "return_uint8": false,
82
+ "depth_output_unit": "mm",
83
+ "streaming": false,
84
+ "eval_split": 0.0
85
+ },
86
+ "env": null,
87
+ "policy": {
88
+ "type": "diffusion",
89
+ "n_obs_steps": 2,
90
+ "input_features": {
91
+ "observation.state": {
92
+ "type": "STATE",
93
+ "shape": [
94
+ 18
95
+ ]
96
+ },
97
+ "observation.images.top": {
98
+ "type": "VISUAL",
99
+ "shape": [
100
+ 3,
101
+ 240,
102
+ 320
103
+ ]
104
+ },
105
+ "observation.images.left_wrist": {
106
+ "type": "VISUAL",
107
+ "shape": [
108
+ 3,
109
+ 240,
110
+ 320
111
+ ]
112
+ },
113
+ "observation.images.right_wrist": {
114
+ "type": "VISUAL",
115
+ "shape": [
116
+ 3,
117
+ 240,
118
+ 320
119
+ ]
120
+ }
121
+ },
122
+ "output_features": {
123
+ "action": {
124
+ "type": "ACTION",
125
+ "shape": [
126
+ 4
127
+ ]
128
+ }
129
+ },
130
+ "device": "cuda",
131
+ "use_amp": true,
132
+ "use_peft": false,
133
+ "push_to_hub": false,
134
+ "repo_id": null,
135
+ "private": null,
136
+ "tags": null,
137
+ "license": null,
138
+ "pretrained_path": null,
139
+ "pretrained_revision": null,
140
+ "horizon": 16,
141
+ "n_action_steps": 8,
142
+ "normalization_mapping": {
143
+ "VISUAL": "MEAN_STD",
144
+ "STATE": "MIN_MAX",
145
+ "ACTION": "MIN_MAX"
146
+ },
147
+ "drop_n_last_frames": 7,
148
+ "vision_backbone": "resnet18",
149
+ "resize_shape": null,
150
+ "crop_ratio": 1.0,
151
+ "crop_shape": [
152
+ 216,
153
+ 288
154
+ ],
155
+ "crop_is_random": true,
156
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
157
+ "use_group_norm": false,
158
+ "spatial_softmax_num_keypoints": 32,
159
+ "use_separate_rgb_encoder_per_camera": true,
160
+ "down_dims": [
161
+ 256,
162
+ 512,
163
+ 1024
164
+ ],
165
+ "kernel_size": 5,
166
+ "n_groups": 8,
167
+ "diffusion_step_embed_dim": 128,
168
+ "use_film_scale_modulation": true,
169
+ "gradient_checkpointing": false,
170
+ "noise_scheduler_type": "DDIM",
171
+ "num_train_timesteps": 100,
172
+ "beta_schedule": "squaredcos_cap_v2",
173
+ "beta_start": 0.0001,
174
+ "beta_end": 0.02,
175
+ "prediction_type": "epsilon",
176
+ "clip_sample": true,
177
+ "clip_sample_range": 1.0,
178
+ "num_inference_steps": 10,
179
+ "compile_model": false,
180
+ "compile_mode": "reduce-overhead",
181
+ "do_mask_loss_for_padding": false,
182
+ "optimizer_lr": 0.0001,
183
+ "optimizer_betas": [
184
+ 0.95,
185
+ 0.999
186
+ ],
187
+ "optimizer_eps": 1e-08,
188
+ "optimizer_weight_decay": 1e-06,
189
+ "scheduler_name": "cosine",
190
+ "scheduler_warmup_steps": 500
191
+ },
192
+ "reward_model": null,
193
+ "output_dir": "outputs/train/diffusion",
194
+ "job_name": "diffusion",
195
+ "resume": false,
196
+ "seed": 1000,
197
+ "cudnn_deterministic": false,
198
+ "num_workers": 4,
199
+ "batch_size": 32,
200
+ "prefetch_factor": 2,
201
+ "persistent_workers": true,
202
+ "dataloader_multiprocessing_context": "spawn",
203
+ "steps": 100000,
204
+ "env_eval_freq": 20000,
205
+ "log_freq": 200,
206
+ "eval_steps": 0,
207
+ "max_eval_samples": 0,
208
+ "tolerance_s": 0.0001,
209
+ "save_checkpoint": true,
210
+ "save_freq": 10000,
211
+ "use_policy_training_preset": true,
212
+ "optimizer": {
213
+ "type": "adam",
214
+ "lr": 0.0001,
215
+ "weight_decay": 1e-06,
216
+ "grad_clip_norm": 10.0,
217
+ "betas": [
218
+ 0.95,
219
+ 0.999
220
+ ],
221
+ "eps": 1e-08
222
+ },
223
+ "scheduler": {
224
+ "type": "diffuser",
225
+ "num_warmup_steps": 500,
226
+ "name": "cosine"
227
+ },
228
+ "eval": {
229
+ "n_episodes": 50,
230
+ "batch_size": 11,
231
+ "use_async_envs": true,
232
+ "recording": false,
233
+ "recording_repo_id": null,
234
+ "recording_private": false
235
+ },
236
+ "wandb": {
237
+ "enable": false,
238
+ "disable_artifact": false,
239
+ "project": "lerobot",
240
+ "entity": null,
241
+ "notes": null,
242
+ "run_id": null,
243
+ "mode": null,
244
+ "add_tags": true
245
+ },
246
+ "peft": null,
247
+ "job": {
248
+ "target": null,
249
+ "image": "huggingface/lerobot-gpu:latest",
250
+ "timeout": "2d",
251
+ "detach": false,
252
+ "tags": []
253
+ },
254
+ "save_checkpoint_to_hub": false,
255
+ "sample_weighting": null,
256
+ "rename_map": {},
257
+ "checkpoint_path": null
258
+ }