bonnieliu2002 commited on
Commit
f9c6c42
·
verified ·
1 Parent(s): a143d6e

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +132 -0
  3. model.safetensors +3 -0
  4. train_config.json +243 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: bonnieliu2002/collect_empty_bottle_black_white_wrist
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: dot
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - dot
11
+ ---
12
+
13
+ # Model Card for dot
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
19
+
20
+
21
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
22
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
23
+
24
+ ---
25
+
26
+ ## How to Get Started with the Model
27
+
28
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
29
+ Below is the short version on how to train and run inference/eval:
30
+
31
+ ### Train from scratch
32
+
33
+ ```bash
34
+ python -m lerobot.scripts.train \
35
+ --dataset.repo_id=${HF_USER}/<dataset> \
36
+ --policy.type=act \
37
+ --output_dir=outputs/train/<desired_policy_repo_id> \
38
+ --job_name=lerobot_training \
39
+ --policy.device=cuda \
40
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
41
+ --wandb.enable=true
42
+ ```
43
+
44
+ *Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`.*
45
+
46
+ ### Evaluate the policy/run inference
47
+
48
+ ```bash
49
+ python -m lerobot.record \
50
+ --robot.type=so100_follower \
51
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
52
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
53
+ --episodes=10
54
+ ```
55
+
56
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
57
+
58
+ ---
59
+
60
+ ## Model Details
61
+
62
+ * **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "dot",
3
+ "n_obs_steps": 3,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MIN_MAX",
7
+ "ENV": "MIN_MAX",
8
+ "ACTION": "MIN_MAX"
9
+ },
10
+ "input_features": {
11
+ "observation.state": {
12
+ "type": "STATE",
13
+ "shape": [
14
+ 9
15
+ ]
16
+ },
17
+ "observation.images.wrist": {
18
+ "type": "VISUAL",
19
+ "shape": [
20
+ 3,
21
+ 480,
22
+ 640
23
+ ]
24
+ }
25
+ },
26
+ "output_features": {
27
+ "action": {
28
+ "type": "ACTION",
29
+ "shape": [
30
+ 9
31
+ ]
32
+ }
33
+ },
34
+ "device": "cuda",
35
+ "use_amp": false,
36
+ "push_to_hub": true,
37
+ "repo_id": "bonnieliu2002/dot_collect_empty_bottle_black_white_wrist_200k_bs8_lba0",
38
+ "private": null,
39
+ "tags": null,
40
+ "license": null,
41
+ "train_horizon": 20,
42
+ "inference_horizon": 20,
43
+ "lookback_obs_steps": 10,
44
+ "lookback_aug": 0,
45
+ "override_dataset_stats": false,
46
+ "new_dataset_stats": {
47
+ "action": {
48
+ "max": [
49
+ 512.0,
50
+ 512.0
51
+ ],
52
+ "min": [
53
+ 0.0,
54
+ 0.0
55
+ ]
56
+ },
57
+ "observation.environment_state": {
58
+ "max": [
59
+ 512.0,
60
+ 512.0,
61
+ 512.0,
62
+ 512.0,
63
+ 512.0,
64
+ 512.0,
65
+ 512.0,
66
+ 512.0,
67
+ 512.0,
68
+ 512.0,
69
+ 512.0,
70
+ 512.0,
71
+ 512.0,
72
+ 512.0,
73
+ 512.0,
74
+ 512.0
75
+ ],
76
+ "min": [
77
+ 0.0,
78
+ 0.0,
79
+ 0.0,
80
+ 0.0,
81
+ 0.0,
82
+ 0.0,
83
+ 0.0,
84
+ 0.0,
85
+ 0.0,
86
+ 0.0,
87
+ 0.0,
88
+ 0.0,
89
+ 0.0,
90
+ 0.0,
91
+ 0.0,
92
+ 0.0
93
+ ]
94
+ },
95
+ "observation.state": {
96
+ "max": [
97
+ 512.0,
98
+ 512.0
99
+ ],
100
+ "min": [
101
+ 0.0,
102
+ 0.0
103
+ ]
104
+ }
105
+ },
106
+ "vision_backbone": "resnet18",
107
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
108
+ "pre_norm": true,
109
+ "lora_rank": 20,
110
+ "merge_lora": false,
111
+ "projections_bias": true,
112
+ "dim_model": 128,
113
+ "n_heads": 8,
114
+ "dim_feedforward": 512,
115
+ "n_decoder_layers": 8,
116
+ "rescale_shape": [
117
+ 96,
118
+ 96
119
+ ],
120
+ "crop_scale": 0.8,
121
+ "state_noise": 0.01,
122
+ "noise_decay": 0.999995,
123
+ "dropout": 0.1,
124
+ "alpha": 0.75,
125
+ "train_alpha": 0.9,
126
+ "predict_every_n": 1,
127
+ "return_every_n": 1,
128
+ "optimizer_lr": 0.0001,
129
+ "optimizer_min_lr": 0.0001,
130
+ "optimizer_lr_cycle_steps": 300000,
131
+ "optimizer_weight_decay": 1e-05
132
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ace2ba6af63d63bea765135e790a7c5c6bb84a31b0180cdee4a87cb9b90182a6
3
+ size 56419400
train_config.json ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "bonnieliu2002/collect_empty_bottle_black_white_wrist",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.8,
17
+ 1.2
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.8,
27
+ 1.2
28
+ ]
29
+ }
30
+ },
31
+ "saturation": {
32
+ "weight": 1.0,
33
+ "type": "ColorJitter",
34
+ "kwargs": {
35
+ "saturation": [
36
+ 0.5,
37
+ 1.5
38
+ ]
39
+ }
40
+ },
41
+ "hue": {
42
+ "weight": 1.0,
43
+ "type": "ColorJitter",
44
+ "kwargs": {
45
+ "hue": [
46
+ -0.05,
47
+ 0.05
48
+ ]
49
+ }
50
+ },
51
+ "sharpness": {
52
+ "weight": 1.0,
53
+ "type": "SharpnessJitter",
54
+ "kwargs": {
55
+ "sharpness": [
56
+ 0.5,
57
+ 1.5
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ },
63
+ "revision": null,
64
+ "use_imagenet_stats": true,
65
+ "video_backend": "torchcodec"
66
+ },
67
+ "env": null,
68
+ "policy": {
69
+ "type": "dot",
70
+ "n_obs_steps": 3,
71
+ "normalization_mapping": {
72
+ "VISUAL": "MEAN_STD",
73
+ "STATE": "MIN_MAX",
74
+ "ENV": "MIN_MAX",
75
+ "ACTION": "MIN_MAX"
76
+ },
77
+ "input_features": {
78
+ "observation.state": {
79
+ "type": "STATE",
80
+ "shape": [
81
+ 9
82
+ ]
83
+ },
84
+ "observation.images.wrist": {
85
+ "type": "VISUAL",
86
+ "shape": [
87
+ 3,
88
+ 480,
89
+ 640
90
+ ]
91
+ }
92
+ },
93
+ "output_features": {
94
+ "action": {
95
+ "type": "ACTION",
96
+ "shape": [
97
+ 9
98
+ ]
99
+ }
100
+ },
101
+ "device": "cuda",
102
+ "use_amp": false,
103
+ "push_to_hub": true,
104
+ "repo_id": "bonnieliu2002/dot_collect_empty_bottle_black_white_wrist_200k_bs8_lba0",
105
+ "private": null,
106
+ "tags": null,
107
+ "license": null,
108
+ "train_horizon": 20,
109
+ "inference_horizon": 20,
110
+ "lookback_obs_steps": 10,
111
+ "lookback_aug": 0,
112
+ "override_dataset_stats": false,
113
+ "new_dataset_stats": {
114
+ "action": {
115
+ "max": [
116
+ 512.0,
117
+ 512.0
118
+ ],
119
+ "min": [
120
+ 0.0,
121
+ 0.0
122
+ ]
123
+ },
124
+ "observation.environment_state": {
125
+ "max": [
126
+ 512.0,
127
+ 512.0,
128
+ 512.0,
129
+ 512.0,
130
+ 512.0,
131
+ 512.0,
132
+ 512.0,
133
+ 512.0,
134
+ 512.0,
135
+ 512.0,
136
+ 512.0,
137
+ 512.0,
138
+ 512.0,
139
+ 512.0,
140
+ 512.0,
141
+ 512.0
142
+ ],
143
+ "min": [
144
+ 0.0,
145
+ 0.0,
146
+ 0.0,
147
+ 0.0,
148
+ 0.0,
149
+ 0.0,
150
+ 0.0,
151
+ 0.0,
152
+ 0.0,
153
+ 0.0,
154
+ 0.0,
155
+ 0.0,
156
+ 0.0,
157
+ 0.0,
158
+ 0.0,
159
+ 0.0
160
+ ]
161
+ },
162
+ "observation.state": {
163
+ "max": [
164
+ 512.0,
165
+ 512.0
166
+ ],
167
+ "min": [
168
+ 0.0,
169
+ 0.0
170
+ ]
171
+ }
172
+ },
173
+ "vision_backbone": "resnet18",
174
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
175
+ "pre_norm": true,
176
+ "lora_rank": 20,
177
+ "merge_lora": false,
178
+ "projections_bias": true,
179
+ "dim_model": 128,
180
+ "n_heads": 8,
181
+ "dim_feedforward": 512,
182
+ "n_decoder_layers": 8,
183
+ "rescale_shape": [
184
+ 96,
185
+ 96
186
+ ],
187
+ "crop_scale": 0.8,
188
+ "state_noise": 0.01,
189
+ "noise_decay": 0.999995,
190
+ "dropout": 0.1,
191
+ "alpha": 0.75,
192
+ "train_alpha": 0.9,
193
+ "predict_every_n": 1,
194
+ "return_every_n": 1,
195
+ "optimizer_lr": 0.0001,
196
+ "optimizer_min_lr": 0.0001,
197
+ "optimizer_lr_cycle_steps": 300000,
198
+ "optimizer_weight_decay": 1e-05
199
+ },
200
+ "output_dir": "outputs/train/dot_collect_empty_bottle_black_white_wrist_200k_bs8_lba0",
201
+ "job_name": "dot_collect_empty_bottle_black_white_wrist_200k_bs8_lba0",
202
+ "resume": false,
203
+ "seed": 1000,
204
+ "num_workers": 4,
205
+ "batch_size": 8,
206
+ "steps": 200000,
207
+ "eval_freq": 50000,
208
+ "log_freq": 1000,
209
+ "save_checkpoint": true,
210
+ "save_freq": 50000,
211
+ "use_policy_training_preset": true,
212
+ "optimizer": {
213
+ "type": "adamw",
214
+ "lr": 0.0001,
215
+ "weight_decay": 1e-05,
216
+ "grad_clip_norm": 10.0,
217
+ "betas": [
218
+ 0.9,
219
+ 0.999
220
+ ],
221
+ "eps": 1e-08
222
+ },
223
+ "scheduler": {
224
+ "type": "cosine_annealing",
225
+ "num_warmup_steps": 0,
226
+ "min_lr": 0.0001,
227
+ "T_max": 300000
228
+ },
229
+ "eval": {
230
+ "n_episodes": 3,
231
+ "batch_size": 1,
232
+ "use_async_envs": false
233
+ },
234
+ "wandb": {
235
+ "enable": true,
236
+ "disable_artifact": false,
237
+ "project": "lerobot",
238
+ "entity": null,
239
+ "notes": null,
240
+ "run_id": "sakyhqci",
241
+ "mode": null
242
+ }
243
+ }