Robotics
LeRobot
Safetensors
act
yiruiz commited on
Commit
6e02f20
·
verified ·
1 Parent(s): 5f87a91

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