Robotics
LeRobot
Safetensors
diffusion
msr915 commited on
Commit
01b85c8
·
verified ·
1 Parent(s): 00f47a2

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +75 -0
  3. model.safetensors +3 -0
  4. train_config.json +185 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: aloha/push_T_top_to_bottom_mixture_5_20percent
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - diffusion
10
+ - robotics
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).
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,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MIN_MAX",
7
+ "ACTION": "MIN_MAX"
8
+ },
9
+ "input_features": {
10
+ "observation.images.top": {
11
+ "type": "VISUAL",
12
+ "shape": [
13
+ 3,
14
+ 128,
15
+ 128
16
+ ]
17
+ }
18
+ },
19
+ "output_features": {
20
+ "action": {
21
+ "type": "ACTION",
22
+ "shape": [
23
+ 4
24
+ ]
25
+ }
26
+ },
27
+ "device": "cuda",
28
+ "use_amp": true,
29
+ "push_to_hub": true,
30
+ "repo_id": "diffusion",
31
+ "private": null,
32
+ "tags": null,
33
+ "license": null,
34
+ "horizon": 16,
35
+ "n_action_steps": 8,
36
+ "drop_n_last_frames": 7,
37
+ "vision_backbone": "resnet18",
38
+ "crop_shape": [
39
+ 84,
40
+ 84
41
+ ],
42
+ "crop_is_random": true,
43
+ "pretrained_backbone_weights": null,
44
+ "use_group_norm": true,
45
+ "spatial_softmax_num_keypoints": 32,
46
+ "use_separate_rgb_encoder_per_camera": false,
47
+ "down_dims": [
48
+ 512,
49
+ 1024,
50
+ 2048
51
+ ],
52
+ "kernel_size": 5,
53
+ "n_groups": 8,
54
+ "diffusion_step_embed_dim": 128,
55
+ "use_film_scale_modulation": true,
56
+ "noise_scheduler_type": "DDPM",
57
+ "num_train_timesteps": 100,
58
+ "beta_schedule": "squaredcos_cap_v2",
59
+ "beta_start": 0.0001,
60
+ "beta_end": 0.02,
61
+ "prediction_type": "epsilon",
62
+ "clip_sample": true,
63
+ "clip_sample_range": 1.0,
64
+ "num_inference_steps": null,
65
+ "do_mask_loss_for_padding": false,
66
+ "optimizer_lr": 0.0001,
67
+ "optimizer_betas": [
68
+ 0.95,
69
+ 0.999
70
+ ],
71
+ "optimizer_eps": 1e-08,
72
+ "optimizer_weight_decay": 1e-06,
73
+ "scheduler_name": "cosine",
74
+ "scheduler_warmup_steps": 500
75
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d134800ea23e50c3946a4923adf6945bec997a19e31d6c46905e21fbef17780
3
+ size 1050432128
train_config.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "aloha/push_T_top_to_bottom_mixture_5_20percent",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
8
+ "max_num_transforms": 3,
9
+ "random_order": true,
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": "pyav"
66
+ },
67
+ "env": null,
68
+ "policy": {
69
+ "type": "diffusion",
70
+ "n_obs_steps": 2,
71
+ "normalization_mapping": {
72
+ "VISUAL": "MEAN_STD",
73
+ "STATE": "MIN_MAX",
74
+ "ACTION": "MIN_MAX"
75
+ },
76
+ "input_features": {
77
+ "observation.images.top": {
78
+ "type": "VISUAL",
79
+ "shape": [
80
+ 3,
81
+ 128,
82
+ 128
83
+ ]
84
+ }
85
+ },
86
+ "output_features": {
87
+ "action": {
88
+ "type": "ACTION",
89
+ "shape": [
90
+ 4
91
+ ]
92
+ }
93
+ },
94
+ "device": "cuda",
95
+ "use_amp": true,
96
+ "push_to_hub": true,
97
+ "repo_id": "diffusion",
98
+ "private": null,
99
+ "tags": null,
100
+ "license": null,
101
+ "horizon": 16,
102
+ "n_action_steps": 8,
103
+ "drop_n_last_frames": 7,
104
+ "vision_backbone": "resnet18",
105
+ "crop_shape": [
106
+ 84,
107
+ 84
108
+ ],
109
+ "crop_is_random": true,
110
+ "pretrained_backbone_weights": null,
111
+ "use_group_norm": true,
112
+ "spatial_softmax_num_keypoints": 32,
113
+ "use_separate_rgb_encoder_per_camera": false,
114
+ "down_dims": [
115
+ 512,
116
+ 1024,
117
+ 2048
118
+ ],
119
+ "kernel_size": 5,
120
+ "n_groups": 8,
121
+ "diffusion_step_embed_dim": 128,
122
+ "use_film_scale_modulation": true,
123
+ "noise_scheduler_type": "DDPM",
124
+ "num_train_timesteps": 100,
125
+ "beta_schedule": "squaredcos_cap_v2",
126
+ "beta_start": 0.0001,
127
+ "beta_end": 0.02,
128
+ "prediction_type": "epsilon",
129
+ "clip_sample": true,
130
+ "clip_sample_range": 1.0,
131
+ "num_inference_steps": null,
132
+ "do_mask_loss_for_padding": false,
133
+ "optimizer_lr": 0.0001,
134
+ "optimizer_betas": [
135
+ 0.95,
136
+ 0.999
137
+ ],
138
+ "optimizer_eps": 1e-08,
139
+ "optimizer_weight_decay": 1e-06,
140
+ "scheduler_name": "cosine",
141
+ "scheduler_warmup_steps": 500
142
+ },
143
+ "output_dir": "mixture_models/5augmented_dp/20percent/policy",
144
+ "job_name": "diffusion",
145
+ "resume": false,
146
+ "seed": 100000,
147
+ "num_workers": 4,
148
+ "batch_size": 64,
149
+ "steps": 30000,
150
+ "eval_freq": 20000,
151
+ "log_freq": 200,
152
+ "save_checkpoint": true,
153
+ "save_freq": 30000,
154
+ "use_policy_training_preset": true,
155
+ "optimizer": {
156
+ "type": "adam",
157
+ "lr": 0.0001,
158
+ "weight_decay": 1e-06,
159
+ "grad_clip_norm": 10.0,
160
+ "betas": [
161
+ 0.95,
162
+ 0.999
163
+ ],
164
+ "eps": 1e-08
165
+ },
166
+ "scheduler": {
167
+ "type": "diffuser",
168
+ "num_warmup_steps": 500,
169
+ "name": "cosine"
170
+ },
171
+ "eval": {
172
+ "n_episodes": 50,
173
+ "batch_size": 50,
174
+ "use_async_envs": false
175
+ },
176
+ "wandb": {
177
+ "enable": true,
178
+ "disable_artifact": false,
179
+ "project": "lerobot",
180
+ "entity": null,
181
+ "notes": null,
182
+ "run_id": "s37uvmig",
183
+ "mode": null
184
+ }
185
+ }