leledeyuan commited on
Commit
e046baf
·
verified ·
1 Parent(s): 0f24110

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +94 -0
  3. model.safetensors +3 -0
  4. train_config.json +217 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: leledeyuan/takeoff-tshirt
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: fact
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - fact
11
+ ---
12
+
13
+ # Model Card for fact
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
+ lerobot-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
+ 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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "fact",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 27
9
+ ]
10
+ },
11
+ "observation.images.front": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.top": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.wrist_l": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 480,
32
+ 640
33
+ ]
34
+ },
35
+ "observation.images.wrist_r": {
36
+ "type": "VISUAL",
37
+ "shape": [
38
+ 3,
39
+ 480,
40
+ 640
41
+ ]
42
+ }
43
+ },
44
+ "output_features": {
45
+ "action": {
46
+ "type": "ACTION",
47
+ "shape": [
48
+ 16
49
+ ]
50
+ }
51
+ },
52
+ "device": "cuda",
53
+ "use_amp": false,
54
+ "push_to_hub": true,
55
+ "repo_id": "takeoff_fact",
56
+ "private": null,
57
+ "tags": null,
58
+ "license": null,
59
+ "pretrained_path": null,
60
+ "chunk_size": 50,
61
+ "n_action_steps": 1,
62
+ "normalization_mapping": {
63
+ "VISUAL": "MEAN_STD",
64
+ "STATE": "MEAN_STD",
65
+ "ACTION": "MEAN_STD"
66
+ },
67
+ "vision_backbone": "resnet18",
68
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
69
+ "replace_final_stride_with_dilation": 0,
70
+ "pre_norm": false,
71
+ "dim_model": 512,
72
+ "n_heads": 8,
73
+ "dim_feedforward": 3200,
74
+ "feedforward_activation": "relu",
75
+ "n_encoder_layers": 4,
76
+ "n_decoder_layers": 1,
77
+ "use_vae": true,
78
+ "latent_dim": 32,
79
+ "n_vae_encoder_layers": 4,
80
+ "selected_state_shape": [
81
+ 18
82
+ ],
83
+ "selected_action_shape": [
84
+ 20
85
+ ],
86
+ "wrench_dim": 12,
87
+ "phase_num": null,
88
+ "temporal_ensemble_coeff": 0.1,
89
+ "dropout": 0.1,
90
+ "kl_weight": 10.0,
91
+ "optimizer_lr": 1e-05,
92
+ "optimizer_weight_decay": 0.0001,
93
+ "optimizer_lr_backbone": 1e-05
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:482623087831a33be4c60de3a4ff9c746f60b0f2af4b2b461aac0ccaebee802f
3
+ size 206659296
train_config.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "leledeyuan/takeoff-tshirt",
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
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": null,
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "fact",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.state": {
88
+ "type": "STATE",
89
+ "shape": [
90
+ 27
91
+ ]
92
+ },
93
+ "observation.images.front": {
94
+ "type": "VISUAL",
95
+ "shape": [
96
+ 3,
97
+ 480,
98
+ 640
99
+ ]
100
+ },
101
+ "observation.images.top": {
102
+ "type": "VISUAL",
103
+ "shape": [
104
+ 3,
105
+ 480,
106
+ 640
107
+ ]
108
+ },
109
+ "observation.images.wrist_l": {
110
+ "type": "VISUAL",
111
+ "shape": [
112
+ 3,
113
+ 480,
114
+ 640
115
+ ]
116
+ },
117
+ "observation.images.wrist_r": {
118
+ "type": "VISUAL",
119
+ "shape": [
120
+ 3,
121
+ 480,
122
+ 640
123
+ ]
124
+ }
125
+ },
126
+ "output_features": {
127
+ "action": {
128
+ "type": "ACTION",
129
+ "shape": [
130
+ 16
131
+ ]
132
+ }
133
+ },
134
+ "device": "cuda",
135
+ "use_amp": false,
136
+ "push_to_hub": true,
137
+ "repo_id": "takeoff_fact",
138
+ "private": null,
139
+ "tags": null,
140
+ "license": null,
141
+ "pretrained_path": null,
142
+ "chunk_size": 50,
143
+ "n_action_steps": 1,
144
+ "normalization_mapping": {
145
+ "VISUAL": "MEAN_STD",
146
+ "STATE": "MEAN_STD",
147
+ "ACTION": "MEAN_STD"
148
+ },
149
+ "vision_backbone": "resnet18",
150
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
151
+ "replace_final_stride_with_dilation": 0,
152
+ "pre_norm": false,
153
+ "dim_model": 512,
154
+ "n_heads": 8,
155
+ "dim_feedforward": 3200,
156
+ "feedforward_activation": "relu",
157
+ "n_encoder_layers": 4,
158
+ "n_decoder_layers": 1,
159
+ "use_vae": true,
160
+ "latent_dim": 32,
161
+ "n_vae_encoder_layers": 4,
162
+ "selected_state_shape": [
163
+ 18
164
+ ],
165
+ "selected_action_shape": [
166
+ 20
167
+ ],
168
+ "wrench_dim": 12,
169
+ "phase_num": null,
170
+ "temporal_ensemble_coeff": 0.1,
171
+ "dropout": 0.1,
172
+ "kl_weight": 10.0,
173
+ "optimizer_lr": 1e-05,
174
+ "optimizer_weight_decay": 0.0001,
175
+ "optimizer_lr_backbone": 1e-05
176
+ },
177
+ "output_dir": "/home/dayuan/nas/models/fact_takeoff_pw_50chunk",
178
+ "job_name": "takeoff_fact",
179
+ "resume": false,
180
+ "seed": 1000,
181
+ "num_workers": 4,
182
+ "batch_size": 8,
183
+ "steps": 400000,
184
+ "eval_freq": 0,
185
+ "log_freq": 200,
186
+ "save_checkpoint": true,
187
+ "save_freq": 20000,
188
+ "use_policy_training_preset": true,
189
+ "optimizer": {
190
+ "type": "adamw",
191
+ "lr": 1e-05,
192
+ "weight_decay": 0.0001,
193
+ "grad_clip_norm": 10.0,
194
+ "betas": [
195
+ 0.9,
196
+ 0.999
197
+ ],
198
+ "eps": 1e-08
199
+ },
200
+ "scheduler": null,
201
+ "eval": {
202
+ "n_episodes": 50,
203
+ "batch_size": 50,
204
+ "use_async_envs": false
205
+ },
206
+ "wandb": {
207
+ "enable": true,
208
+ "disable_artifact": true,
209
+ "project": "lerobot",
210
+ "entity": null,
211
+ "notes": null,
212
+ "run_id": "8m5id0uc",
213
+ "mode": null
214
+ },
215
+ "checkpoint_path": null,
216
+ "rename_map": {}
217
+ }