Robotics
LeRobot
Safetensors
act
bearlover365 commited on
Commit
a0334ba
·
verified ·
1 Parent(s): 7f9e04a

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +61 -0
  3. model.safetensors +3 -0
  4. train_config.json +175 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: bearlover365/d1_d2_d4_white_socks_train
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - act
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).
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,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "act",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MEAN_STD",
7
+ "ACTION": "MEAN_STD"
8
+ },
9
+ "input_features": {
10
+ "observation.state": {
11
+ "type": "STATE",
12
+ "shape": [
13
+ 6
14
+ ]
15
+ },
16
+ "observation.images.wrist": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ }
24
+ },
25
+ "output_features": {
26
+ "action": {
27
+ "type": "ACTION",
28
+ "shape": [
29
+ 6
30
+ ]
31
+ }
32
+ },
33
+ "device": "cuda",
34
+ "use_amp": false,
35
+ "push_to_hub": true,
36
+ "repo_id": "bearlover365/d1_d2_d4_dataset_3_validation_episodes",
37
+ "private": null,
38
+ "tags": null,
39
+ "license": null,
40
+ "chunk_size": 100,
41
+ "n_action_steps": 100,
42
+ "vision_backbone": "resnet18",
43
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
44
+ "replace_final_stride_with_dilation": false,
45
+ "pre_norm": false,
46
+ "dim_model": 512,
47
+ "n_heads": 8,
48
+ "dim_feedforward": 3200,
49
+ "feedforward_activation": "relu",
50
+ "n_encoder_layers": 4,
51
+ "n_decoder_layers": 1,
52
+ "use_vae": true,
53
+ "latent_dim": 32,
54
+ "n_vae_encoder_layers": 4,
55
+ "temporal_ensemble_coeff": null,
56
+ "dropout": 0.1,
57
+ "kl_weight": 10.0,
58
+ "optimizer_lr": 1e-05,
59
+ "optimizer_weight_decay": 0.0001,
60
+ "optimizer_lr_backbone": 1e-05
61
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1796b9fb633e85a0efc62814628123e080ada9f41e3b9446cea4d84664f4628
3
+ size 206700792
train_config.json ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "bearlover365/d1_d2_d4_white_socks_train",
4
+ "root": null,
5
+ "episodes": null,
6
+ "val_episodes": [
7
+ 0,
8
+ 1,
9
+ 2
10
+ ],
11
+ "val_repo_id": "bearlover365/d1_d2_d4_validation_dataset_3_episodes",
12
+ "image_transforms": {
13
+ "enable": false,
14
+ "max_num_transforms": 3,
15
+ "random_order": false,
16
+ "tfs": {
17
+ "brightness": {
18
+ "weight": 1.0,
19
+ "type": "ColorJitter",
20
+ "kwargs": {
21
+ "brightness": [
22
+ 0.8,
23
+ 1.2
24
+ ]
25
+ }
26
+ },
27
+ "contrast": {
28
+ "weight": 1.0,
29
+ "type": "ColorJitter",
30
+ "kwargs": {
31
+ "contrast": [
32
+ 0.8,
33
+ 1.2
34
+ ]
35
+ }
36
+ },
37
+ "saturation": {
38
+ "weight": 1.0,
39
+ "type": "ColorJitter",
40
+ "kwargs": {
41
+ "saturation": [
42
+ 0.5,
43
+ 1.5
44
+ ]
45
+ }
46
+ },
47
+ "hue": {
48
+ "weight": 1.0,
49
+ "type": "ColorJitter",
50
+ "kwargs": {
51
+ "hue": [
52
+ -0.05,
53
+ 0.05
54
+ ]
55
+ }
56
+ },
57
+ "sharpness": {
58
+ "weight": 1.0,
59
+ "type": "SharpnessJitter",
60
+ "kwargs": {
61
+ "sharpness": [
62
+ 0.5,
63
+ 1.5
64
+ ]
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "revision": null,
70
+ "use_imagenet_stats": true,
71
+ "video_backend": "pyav"
72
+ },
73
+ "env": null,
74
+ "policy": {
75
+ "type": "act",
76
+ "n_obs_steps": 1,
77
+ "normalization_mapping": {
78
+ "VISUAL": "MEAN_STD",
79
+ "STATE": "MEAN_STD",
80
+ "ACTION": "MEAN_STD"
81
+ },
82
+ "input_features": {
83
+ "observation.state": {
84
+ "type": "STATE",
85
+ "shape": [
86
+ 6
87
+ ]
88
+ },
89
+ "observation.images.wrist": {
90
+ "type": "VISUAL",
91
+ "shape": [
92
+ 3,
93
+ 480,
94
+ 640
95
+ ]
96
+ }
97
+ },
98
+ "output_features": {
99
+ "action": {
100
+ "type": "ACTION",
101
+ "shape": [
102
+ 6
103
+ ]
104
+ }
105
+ },
106
+ "device": "cuda",
107
+ "use_amp": false,
108
+ "push_to_hub": true,
109
+ "repo_id": "bearlover365/d1_d2_d4_dataset_3_validation_episodes",
110
+ "private": null,
111
+ "tags": null,
112
+ "license": null,
113
+ "chunk_size": 100,
114
+ "n_action_steps": 100,
115
+ "vision_backbone": "resnet18",
116
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
117
+ "replace_final_stride_with_dilation": false,
118
+ "pre_norm": false,
119
+ "dim_model": 512,
120
+ "n_heads": 8,
121
+ "dim_feedforward": 3200,
122
+ "feedforward_activation": "relu",
123
+ "n_encoder_layers": 4,
124
+ "n_decoder_layers": 1,
125
+ "use_vae": true,
126
+ "latent_dim": 32,
127
+ "n_vae_encoder_layers": 4,
128
+ "temporal_ensemble_coeff": null,
129
+ "dropout": 0.1,
130
+ "kl_weight": 10.0,
131
+ "optimizer_lr": 1e-05,
132
+ "optimizer_weight_decay": 0.0001,
133
+ "optimizer_lr_backbone": 1e-05
134
+ },
135
+ "output_dir": "/teamspace/studios/this_studio/lerobot/outputs/train/d1_d2_d4_dataset_only_3_validation_episodes_checkpoint_50k_500k_steps_20250826_153011",
136
+ "job_name": "d1_d2_d4_dataset_only_3_validation_episodes_checkpoint_50k_500k_steps_20250826_153011_bs8_lr1.0e-05_bblr1.0e-05_smp4000000",
137
+ "resume": false,
138
+ "seed": 1000,
139
+ "num_workers": 4,
140
+ "batch_size": 8,
141
+ "steps": 500000,
142
+ "target_samples": null,
143
+ "eval_freq": 5000,
144
+ "log_freq": 200,
145
+ "save_checkpoint": true,
146
+ "save_freq": 50000,
147
+ "use_policy_training_preset": true,
148
+ "optimizer": {
149
+ "type": "adamw",
150
+ "lr": 1e-05,
151
+ "weight_decay": 0.0001,
152
+ "grad_clip_norm": 10.0,
153
+ "betas": [
154
+ 0.9,
155
+ 0.999
156
+ ],
157
+ "eps": 1e-08
158
+ },
159
+ "scheduler": null,
160
+ "eval": {
161
+ "n_episodes": 50,
162
+ "batch_size": 50,
163
+ "use_async_envs": false
164
+ },
165
+ "initial_step": 0,
166
+ "wandb": {
167
+ "enable": true,
168
+ "disable_artifact": false,
169
+ "project": "lerobot",
170
+ "entity": "benfduffy-bearcover-gmbh",
171
+ "notes": null,
172
+ "run_id": "yjrhldn6",
173
+ "mode": null
174
+ }
175
+ }