Robotics
LeRobot
Safetensors
diffusion
zijian2022 commited on
Commit
cbc492f
·
verified ·
1 Parent(s): 843203c

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +4 -4
  2. config.json +44 -24
  3. model.safetensors +2 -2
  4. train_config.json +56 -32
README.md CHANGED
@@ -2,20 +2,20 @@
2
  datasets: zijian2022/sortCubebad
3
  library_name: lerobot
4
  license: apache-2.0
5
- model_name: act
6
  pipeline_tag: robotics
7
  tags:
8
  - lerobot
9
- - act
10
  - robotics
 
11
  ---
12
 
13
- # Model Card for act
14
 
15
  <!-- Provide a quick summary of what the model is/does. -->
16
 
17
 
18
- [Action Chunking with Transformers (ACT)](https://huggingface.co/papers/2304.13705) is an imitation-learning method that predicts short action chunks instead of single steps. It learns from teleoperated data and often achieves high success rates.
19
 
20
 
21
  This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
 
2
  datasets: zijian2022/sortCubebad
3
  library_name: lerobot
4
  license: apache-2.0
5
+ model_name: diffusion
6
  pipeline_tag: robotics
7
  tags:
8
  - lerobot
 
9
  - robotics
10
+ - diffusion
11
  ---
12
 
13
+ # Model Card for diffusion
14
 
15
  <!-- Provide a quick summary of what the model is/does. -->
16
 
17
 
18
+ [Diffusion Policy](https://huggingface.co/papers/2303.04137) treats visuomotor control as a generative diffusion process, producing smooth, multi-step action trajectories that excel at contact-rich manipulation.
19
 
20
 
21
  This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "type": "act",
3
- "n_obs_steps": 1,
4
  "input_features": {
5
  "observation.state": {
6
  "type": "STATE",
@@ -41,30 +41,50 @@
41
  "tags": null,
42
  "license": null,
43
  "pretrained_path": null,
44
- "chunk_size": 100,
45
- "n_action_steps": 100,
46
  "normalization_mapping": {
47
  "VISUAL": "MEAN_STD",
48
- "STATE": "MEAN_STD",
49
- "ACTION": "MEAN_STD"
50
  },
 
51
  "vision_backbone": "resnet18",
52
- "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
53
- "replace_final_stride_with_dilation": false,
54
- "pre_norm": false,
55
- "dim_model": 512,
56
- "n_heads": 8,
57
- "dim_feedforward": 3200,
58
- "feedforward_activation": "relu",
59
- "n_encoder_layers": 4,
60
- "n_decoder_layers": 1,
61
- "use_vae": true,
62
- "latent_dim": 32,
63
- "n_vae_encoder_layers": 4,
64
- "temporal_ensemble_coeff": null,
65
- "dropout": 0.1,
66
- "kl_weight": 10.0,
67
- "optimizer_lr": 1e-05,
68
- "optimizer_weight_decay": 0.0001,
69
- "optimizer_lr_backbone": 1e-05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
 
1
  {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
  "input_features": {
5
  "observation.state": {
6
  "type": "STATE",
 
41
  "tags": null,
42
  "license": null,
43
  "pretrained_path": null,
44
+ "horizon": 16,
45
+ "n_action_steps": 8,
46
  "normalization_mapping": {
47
  "VISUAL": "MEAN_STD",
48
+ "STATE": "MIN_MAX",
49
+ "ACTION": "MIN_MAX"
50
  },
51
+ "drop_n_last_frames": 7,
52
  "vision_backbone": "resnet18",
53
+ "crop_shape": [
54
+ 84,
55
+ 84
56
+ ],
57
+ "crop_is_random": true,
58
+ "pretrained_backbone_weights": null,
59
+ "use_group_norm": true,
60
+ "spatial_softmax_num_keypoints": 32,
61
+ "use_separate_rgb_encoder_per_camera": false,
62
+ "down_dims": [
63
+ 512,
64
+ 1024,
65
+ 2048
66
+ ],
67
+ "kernel_size": 5,
68
+ "n_groups": 8,
69
+ "diffusion_step_embed_dim": 128,
70
+ "use_film_scale_modulation": true,
71
+ "noise_scheduler_type": "DDPM",
72
+ "num_train_timesteps": 100,
73
+ "beta_schedule": "squaredcos_cap_v2",
74
+ "beta_start": 0.0001,
75
+ "beta_end": 0.02,
76
+ "prediction_type": "epsilon",
77
+ "clip_sample": true,
78
+ "clip_sample_range": 1.0,
79
+ "num_inference_steps": null,
80
+ "do_mask_loss_for_padding": false,
81
+ "optimizer_lr": 0.0001,
82
+ "optimizer_betas": [
83
+ 0.95,
84
+ 0.999
85
+ ],
86
+ "optimizer_eps": 1e-08,
87
+ "optimizer_weight_decay": 1e-06,
88
+ "scheduler_name": "cosine",
89
+ "scheduler_warmup_steps": 500
90
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:896530847bc16261c58ac0cd2d305a3816363efa6f4bd411cb2a9f8baa871c81
3
- size 206732520
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae198b17c0d99a1cf2a89192a3e7df441f7f8658f2d3c365999527e612ad4a33
3
+ size 1067491256
train_config.json CHANGED
@@ -81,8 +81,8 @@
81
  },
82
  "env": null,
83
  "policy": {
84
- "type": "act",
85
- "n_obs_steps": 1,
86
  "input_features": {
87
  "observation.state": {
88
  "type": "STATE",
@@ -123,35 +123,55 @@
123
  "tags": null,
124
  "license": null,
125
  "pretrained_path": null,
126
- "chunk_size": 100,
127
- "n_action_steps": 100,
128
  "normalization_mapping": {
129
  "VISUAL": "MEAN_STD",
130
- "STATE": "MEAN_STD",
131
- "ACTION": "MEAN_STD"
132
  },
 
133
  "vision_backbone": "resnet18",
134
- "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
135
- "replace_final_stride_with_dilation": false,
136
- "pre_norm": false,
137
- "dim_model": 512,
138
- "n_heads": 8,
139
- "dim_feedforward": 3200,
140
- "feedforward_activation": "relu",
141
- "n_encoder_layers": 4,
142
- "n_decoder_layers": 1,
143
- "use_vae": true,
144
- "latent_dim": 32,
145
- "n_vae_encoder_layers": 4,
146
- "temporal_ensemble_coeff": null,
147
- "dropout": 0.1,
148
- "kl_weight": 10.0,
149
- "optimizer_lr": 1e-05,
150
- "optimizer_weight_decay": 0.0001,
151
- "optimizer_lr_backbone": 1e-05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  },
153
- "output_dir": "outputs/train/sortCubebad",
154
- "job_name": "act_fanuc_test",
155
  "resume": false,
156
  "seed": 1000,
157
  "num_workers": 4,
@@ -164,17 +184,21 @@
164
  "save_freq": 20000,
165
  "use_policy_training_preset": true,
166
  "optimizer": {
167
- "type": "adamw",
168
- "lr": 1e-05,
169
- "weight_decay": 0.0001,
170
  "grad_clip_norm": 10.0,
171
  "betas": [
172
- 0.9,
173
  0.999
174
  ],
175
  "eps": 1e-08
176
  },
177
- "scheduler": null,
 
 
 
 
178
  "eval": {
179
  "n_episodes": 50,
180
  "batch_size": 50,
@@ -186,7 +210,7 @@
186
  "project": "lerobot",
187
  "entity": null,
188
  "notes": null,
189
- "run_id": "2h7d87yo",
190
  "mode": null
191
  },
192
  "use_rabc": false,
 
81
  },
82
  "env": null,
83
  "policy": {
84
+ "type": "diffusion",
85
+ "n_obs_steps": 2,
86
  "input_features": {
87
  "observation.state": {
88
  "type": "STATE",
 
123
  "tags": null,
124
  "license": null,
125
  "pretrained_path": null,
126
+ "horizon": 16,
127
+ "n_action_steps": 8,
128
  "normalization_mapping": {
129
  "VISUAL": "MEAN_STD",
130
+ "STATE": "MIN_MAX",
131
+ "ACTION": "MIN_MAX"
132
  },
133
+ "drop_n_last_frames": 7,
134
  "vision_backbone": "resnet18",
135
+ "crop_shape": [
136
+ 84,
137
+ 84
138
+ ],
139
+ "crop_is_random": true,
140
+ "pretrained_backbone_weights": null,
141
+ "use_group_norm": true,
142
+ "spatial_softmax_num_keypoints": 32,
143
+ "use_separate_rgb_encoder_per_camera": false,
144
+ "down_dims": [
145
+ 512,
146
+ 1024,
147
+ 2048
148
+ ],
149
+ "kernel_size": 5,
150
+ "n_groups": 8,
151
+ "diffusion_step_embed_dim": 128,
152
+ "use_film_scale_modulation": true,
153
+ "noise_scheduler_type": "DDPM",
154
+ "num_train_timesteps": 100,
155
+ "beta_schedule": "squaredcos_cap_v2",
156
+ "beta_start": 0.0001,
157
+ "beta_end": 0.02,
158
+ "prediction_type": "epsilon",
159
+ "clip_sample": true,
160
+ "clip_sample_range": 1.0,
161
+ "num_inference_steps": null,
162
+ "do_mask_loss_for_padding": false,
163
+ "optimizer_lr": 0.0001,
164
+ "optimizer_betas": [
165
+ 0.95,
166
+ 0.999
167
+ ],
168
+ "optimizer_eps": 1e-08,
169
+ "optimizer_weight_decay": 1e-06,
170
+ "scheduler_name": "cosine",
171
+ "scheduler_warmup_steps": 500
172
  },
173
+ "output_dir": "outputs/train/diffusion_sortCubebad",
174
+ "job_name": "diffusion_fanuc_test",
175
  "resume": false,
176
  "seed": 1000,
177
  "num_workers": 4,
 
184
  "save_freq": 20000,
185
  "use_policy_training_preset": true,
186
  "optimizer": {
187
+ "type": "adam",
188
+ "lr": 0.0001,
189
+ "weight_decay": 1e-06,
190
  "grad_clip_norm": 10.0,
191
  "betas": [
192
+ 0.95,
193
  0.999
194
  ],
195
  "eps": 1e-08
196
  },
197
+ "scheduler": {
198
+ "type": "diffuser",
199
+ "num_warmup_steps": 500,
200
+ "name": "cosine"
201
+ },
202
  "eval": {
203
  "n_episodes": 50,
204
  "batch_size": 50,
 
210
  "project": "lerobot",
211
  "entity": null,
212
  "notes": null,
213
+ "run_id": "wjk6sk7t",
214
  "mode": null
215
  },
216
  "use_rabc": false,