Robotics
LeRobot
Safetensors
act
alphabot2 commited on
Commit
92cb68d
·
verified ·
1 Parent(s): d62fbb1

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: alphabot2/Aibot2_merged_2026_06_24_and_2026_07_10_top_right
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
+
22
+
23
+ <!-- A short demo is worth more than any description! Record a GIF/video of the policy
24
+ running on your robot, upload it to this repo, and embed it here:
25
+ <p align="center">
26
+ <img src="https://huggingface.co/<hf_user>/<policy_repo_id>/resolve/main/demo.gif" width="60%"/>
27
+ </p>
28
+ -->
29
+
30
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
31
+
32
+ Learn how to train and run it in the [LeRobot act guide](https://huggingface.co/docs/lerobot/main/en/act), or browse the [full documentation](https://huggingface.co/docs/lerobot/index).
33
+
34
+
35
+ ---
36
+
37
+ ## Model Details
38
+
39
+ - **License:** apache-2.0
40
+ - **Robot type:** `aibot2`
41
+ - **Cameras:** `camera_front`, `camera_left`, `camera_right`, `camera_top`
42
+
43
+
44
+ ## Inputs & Outputs
45
+
46
+ The policy consumes these observation features and produces these action features.
47
+
48
+ **Inputs**
49
+
50
+ | Feature | Type | Shape |
51
+ | --- | --- | --- |
52
+ | `observation.state` | STATE | `(16,)` |
53
+ | `observation.images.camera_front` | VISUAL | `(3, 240, 320)` |
54
+ | `observation.images.camera_left` | VISUAL | `(3, 240, 320)` |
55
+ | `observation.images.camera_right` | VISUAL | `(3, 240, 320)` |
56
+ | `observation.images.camera_top` | VISUAL | `(3, 240, 320)` |
57
+
58
+ **Outputs**
59
+
60
+ | Feature | Type | Shape |
61
+ | --- | --- | --- |
62
+ | `action` | ACTION | `(16,)` |
63
+
64
+
65
+ ## Training Dataset
66
+
67
+ - **Repository:** [alphabot2/Aibot2_merged_2026_06_24_and_2026_07_10_top_right](https://huggingface.co/datasets/alphabot2/Aibot2_merged_2026_06_24_and_2026_07_10_top_right)
68
+ - **Episodes:** 219
69
+ - **Frames:** 21349
70
+ - **Frame rate:** 10 FPS
71
+ - **Task(s):** "Pick object from table and put it inside the box", "Pick object from table"
72
+
73
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=alphabot2/Aibot2_merged_2026_06_24_and_2026_07_10_top_right">
74
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
75
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
76
+ </a>
77
+
78
+
79
+ ## Training Configuration
80
+
81
+ | Setting | Value |
82
+ | --- | --- |
83
+ | Training steps | 20000 |
84
+ | Batch size | 16 |
85
+ | Optimizer | adamw |
86
+ | Learning rate | 1e-05 |
87
+ | Seed | 1000 |
88
+ | LeRobot version | 0.6.1 |
89
+
90
+ ---
91
+
92
+ ## How to Get Started with the Model
93
+
94
+ New to LeRobot? These guides cover the full workflow:
95
+
96
+ - **[Install LeRobot](https://huggingface.co/docs/lerobot/main/en/installation)** — set up the `lerobot` package.
97
+ - **[Hardware setup](https://huggingface.co/docs/lerobot/main/en/hardware_guide)** — assemble, wire, and calibrate your robot and cameras.
98
+ - **[Record data & train a policy](https://huggingface.co/docs/lerobot/en/il_robots)** — the end-to-end imitation-learning walkthrough.
99
+ - **[CLI cheat-sheet](https://huggingface.co/docs/lerobot/main/en/cheat-sheet)** — quick reference for the `lerobot-*` commands.
100
+
101
+ The short version to run and train this policy:
102
+
103
+ ### Run the policy on your robot
104
+
105
+ ```bash
106
+ lerobot-rollout \
107
+ --strategy.type=base \
108
+ --robot.type=aibot2 \
109
+ --robot.port=<your_robot_port> \
110
+ --robot.cameras="{ <camera_1>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}, <camera_2>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}}" \
111
+ --policy.path=Niranjan325/topright-act \
112
+ --task="Pick object from table and put it inside the box" \
113
+ --duration=60
114
+ ```
115
+
116
+ Replace the remaining `<...>` placeholders with your own values: `--robot.port` and the camera names/indices are specific to your machine, and the camera names must match the observation keys this policy was trained on.
117
+
118
+ When `--strategy.type=base` is used the script doesn't record the episodes. Skipping duration will make the policy run indefinitely. For more information look at [rollout documentation](https://huggingface.co/docs/lerobot/main/en/inference).
119
+
120
+ ### Train your own policy
121
+
122
+ ```bash
123
+ lerobot-train \
124
+ --dataset.repo_id=${HF_USER}/<dataset> \
125
+ --policy.type=act \
126
+ --output_dir=outputs/train/<policy_repo_id> \
127
+ --job_name=lerobot_training \
128
+ --policy.device=cuda \
129
+ --policy.repo_id=${HF_USER}/<policy_repo_id> \
130
+ --wandb.enable=true
131
+ ```
132
+
133
+ _Writes checkpoints to `outputs/train/<policy_repo_id>/checkpoints/`._
134
+
135
+ ---
136
+
137
+ ## Evaluation
138
+
139
+ <!-- Report real-robot results here: run the policy several times per task and count the
140
+ successes. Delete the "No evaluation results" line and fill in this table instead:
141
+
142
+ | Task | Trials | Successes | Success rate |
143
+ | ---- | ------ | --------- | ------------ |
144
+ | pick the lego brick | 10 | 8 | 80% |
145
+
146
+ Also worth noting: anything that affects difficulty (new object positions, lighting,
147
+ distractors, a different robot of the same type, ...).
148
+ -->
149
+
150
+ _No evaluation results have been provided for this policy yet._
151
+
152
+ ---
153
+
154
+ ## Citation
155
+
156
+ If you use this policy, please cite the method linked in the description above, along with LeRobot:
157
+
158
+ ```bibtex
159
+ @misc{cadene2024lerobot,
160
+ author = {Cadene, Remi and Alibert, Simon and Soare, Alexander and Gallouedec, Quentin and Zouitine, Adil and Palma, Steven and Kooijmans, Pepijn and Aractingi, Michel and Shukor, Mustafa and Aubakirova, Dana and Russi, Martino and Capuano, Francesco and Pascal, Caroline and Choghari, Jade and Moss, Jess and Wolf, Thomas},
161
+ title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
162
+ howpublished = "\url{https://github.com/huggingface/lerobot}",
163
+ year = {2024}
164
+ }
165
+ ```
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "act",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 16
9
+ ]
10
+ },
11
+ "observation.images.camera_front": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 240,
16
+ 320
17
+ ]
18
+ },
19
+ "observation.images.camera_left": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 240,
24
+ 320
25
+ ]
26
+ },
27
+ "observation.images.camera_right": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 240,
32
+ 320
33
+ ]
34
+ },
35
+ "observation.images.camera_top": {
36
+ "type": "VISUAL",
37
+ "shape": [
38
+ 3,
39
+ 240,
40
+ 320
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
+ "use_peft": false,
55
+ "push_to_hub": true,
56
+ "repo_id": "Niranjan325/topright-act",
57
+ "private": null,
58
+ "tags": null,
59
+ "license": null,
60
+ "pretrained_path": null,
61
+ "chunk_size": 100,
62
+ "n_action_steps": 100,
63
+ "normalization_mapping": {
64
+ "VISUAL": "MEAN_STD",
65
+ "STATE": "MEAN_STD",
66
+ "ACTION": "MEAN_STD"
67
+ },
68
+ "vision_backbone": "resnet18",
69
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
70
+ "replace_final_stride_with_dilation": false,
71
+ "pre_norm": false,
72
+ "dim_model": 512,
73
+ "n_heads": 8,
74
+ "dim_feedforward": 3200,
75
+ "feedforward_activation": "relu",
76
+ "n_encoder_layers": 4,
77
+ "n_decoder_layers": 1,
78
+ "use_vae": true,
79
+ "latent_dim": 32,
80
+ "n_vae_encoder_layers": 4,
81
+ "temporal_ensemble_coeff": null,
82
+ "dropout": 0.1,
83
+ "kl_weight": 10.0,
84
+ "optimizer_lr": 1e-05,
85
+ "optimizer_weight_decay": 0.0001,
86
+ "optimizer_lr_backbone": 1e-05
87
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c08d8eed5d962ebccca3ca6660490cd416cd9a4750838f4a1db2d3b8afc7f02f
3
+ size 206781696
policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "unnormalizer_processor",
6
+ "config": {
7
+ "eps": 1e-08,
8
+ "features": {
9
+ "action": {
10
+ "type": "ACTION",
11
+ "shape": [
12
+ 16
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "MEAN_STD",
19
+ "ACTION": "MEAN_STD"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "device_processor",
26
+ "config": {
27
+ "device": "cpu",
28
+ "float_dtype": null
29
+ }
30
+ }
31
+ ]
32
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a99bbb8d05d517bea056df7b92c83d9502cb6d052d54e0a2b049c584cfc0db5
3
+ size 10616
policy_preprocessor.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {}
8
+ }
9
+ },
10
+ {
11
+ "registry_name": "to_batch_processor",
12
+ "config": {}
13
+ },
14
+ {
15
+ "registry_name": "device_processor",
16
+ "config": {
17
+ "device": "cuda",
18
+ "float_dtype": null
19
+ }
20
+ },
21
+ {
22
+ "registry_name": "normalizer_processor",
23
+ "config": {
24
+ "eps": 1e-08,
25
+ "features": {
26
+ "observation.state": {
27
+ "type": "STATE",
28
+ "shape": [
29
+ 16
30
+ ]
31
+ },
32
+ "observation.images.camera_front": {
33
+ "type": "VISUAL",
34
+ "shape": [
35
+ 3,
36
+ 240,
37
+ 320
38
+ ]
39
+ },
40
+ "observation.images.camera_left": {
41
+ "type": "VISUAL",
42
+ "shape": [
43
+ 3,
44
+ 240,
45
+ 320
46
+ ]
47
+ },
48
+ "observation.images.camera_right": {
49
+ "type": "VISUAL",
50
+ "shape": [
51
+ 3,
52
+ 240,
53
+ 320
54
+ ]
55
+ },
56
+ "observation.images.camera_top": {
57
+ "type": "VISUAL",
58
+ "shape": [
59
+ 3,
60
+ 240,
61
+ 320
62
+ ]
63
+ },
64
+ "action": {
65
+ "type": "ACTION",
66
+ "shape": [
67
+ 16
68
+ ]
69
+ }
70
+ },
71
+ "norm_map": {
72
+ "VISUAL": "MEAN_STD",
73
+ "STATE": "MEAN_STD",
74
+ "ACTION": "MEAN_STD"
75
+ }
76
+ },
77
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
78
+ }
79
+ ]
80
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06d1ec62f6bb91ad94acc348d2a2fc0ddcfe8b7164d979479e6275bb7db58dcb
3
+ size 10632
train_config.json ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "alphabot2/Aibot2_merged_2026_06_24_and_2026_07_10_top_right",
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
+ "return_uint8": false,
81
+ "depth_output_unit": "mm",
82
+ "streaming": false,
83
+ "eval_split": 0.0
84
+ },
85
+ "env": null,
86
+ "policy": {
87
+ "type": "act",
88
+ "n_obs_steps": 1,
89
+ "input_features": {
90
+ "observation.state": {
91
+ "type": "STATE",
92
+ "shape": [
93
+ 16
94
+ ]
95
+ },
96
+ "observation.images.camera_front": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 240,
101
+ 320
102
+ ]
103
+ },
104
+ "observation.images.camera_left": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 3,
108
+ 240,
109
+ 320
110
+ ]
111
+ },
112
+ "observation.images.camera_right": {
113
+ "type": "VISUAL",
114
+ "shape": [
115
+ 3,
116
+ 240,
117
+ 320
118
+ ]
119
+ },
120
+ "observation.images.camera_top": {
121
+ "type": "VISUAL",
122
+ "shape": [
123
+ 3,
124
+ 240,
125
+ 320
126
+ ]
127
+ }
128
+ },
129
+ "output_features": {
130
+ "action": {
131
+ "type": "ACTION",
132
+ "shape": [
133
+ 16
134
+ ]
135
+ }
136
+ },
137
+ "device": "cuda",
138
+ "use_amp": false,
139
+ "use_peft": false,
140
+ "push_to_hub": true,
141
+ "repo_id": "Niranjan325/topright-act",
142
+ "private": null,
143
+ "tags": null,
144
+ "license": null,
145
+ "pretrained_path": null,
146
+ "pretrained_revision": null,
147
+ "chunk_size": 100,
148
+ "n_action_steps": 100,
149
+ "normalization_mapping": {
150
+ "VISUAL": "MEAN_STD",
151
+ "STATE": "MEAN_STD",
152
+ "ACTION": "MEAN_STD"
153
+ },
154
+ "vision_backbone": "resnet18",
155
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
156
+ "replace_final_stride_with_dilation": false,
157
+ "pre_norm": false,
158
+ "dim_model": 512,
159
+ "n_heads": 8,
160
+ "dim_feedforward": 3200,
161
+ "feedforward_activation": "relu",
162
+ "n_encoder_layers": 4,
163
+ "n_decoder_layers": 1,
164
+ "use_vae": true,
165
+ "latent_dim": 32,
166
+ "n_vae_encoder_layers": 4,
167
+ "temporal_ensemble_coeff": null,
168
+ "dropout": 0.1,
169
+ "kl_weight": 10.0,
170
+ "optimizer_lr": 1e-05,
171
+ "optimizer_weight_decay": 0.0001,
172
+ "optimizer_lr_backbone": 1e-05
173
+ },
174
+ "reward_model": null,
175
+ "output_dir": "outputs/train/topright_act",
176
+ "job_name": "topright_act",
177
+ "resume": false,
178
+ "seed": 1000,
179
+ "cudnn_deterministic": false,
180
+ "num_workers": 4,
181
+ "batch_size": 16,
182
+ "prefetch_factor": 4,
183
+ "persistent_workers": true,
184
+ "steps": 20000,
185
+ "env_eval_freq": 20000,
186
+ "log_freq": 200,
187
+ "eval_steps": 0,
188
+ "max_eval_samples": 0,
189
+ "tolerance_s": 0.0001,
190
+ "save_checkpoint": true,
191
+ "save_freq": 5000,
192
+ "use_policy_training_preset": true,
193
+ "optimizer": {
194
+ "type": "adamw",
195
+ "lr": 1e-05,
196
+ "weight_decay": 0.0001,
197
+ "grad_clip_norm": 10.0,
198
+ "betas": [
199
+ 0.9,
200
+ 0.999
201
+ ],
202
+ "eps": 1e-08
203
+ },
204
+ "scheduler": null,
205
+ "eval": {
206
+ "n_episodes": 50,
207
+ "batch_size": 1,
208
+ "use_async_envs": true,
209
+ "recording": false,
210
+ "recording_repo_id": null,
211
+ "recording_private": false
212
+ },
213
+ "wandb": {
214
+ "enable": true,
215
+ "disable_artifact": false,
216
+ "project": "lerobot",
217
+ "entity": null,
218
+ "notes": null,
219
+ "run_id": "ba0b0swi",
220
+ "mode": null,
221
+ "add_tags": true
222
+ },
223
+ "peft": null,
224
+ "job": {
225
+ "target": null,
226
+ "image": "huggingface/lerobot-gpu:latest",
227
+ "timeout": "2d",
228
+ "detach": false,
229
+ "tags": []
230
+ },
231
+ "save_checkpoint_to_hub": false,
232
+ "sample_weighting": null,
233
+ "rename_map": {},
234
+ "checkpoint_path": null
235
+ }