Robotics
LeRobot
Safetensors
act

Migrate policy to processor pipeline system This commit includes: - Preprocessor configuration - Postprocessor configuration - Clean model weights - Updated configurations - Model card

#6
by AdilZtn - opened
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
- datasets: AdilZtn/grab_red_cube_test_25
3
  library_name: lerobot
4
  license: apache-2.0
5
  model_name: act
6
  pipeline_tag: robotics
7
  tags:
8
  - act
9
- - lerobot
10
  - robotics
 
11
  ---
12
 
13
  # Model Card for act
@@ -31,7 +31,7 @@ Below is the short version on how to train and run inference/eval:
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> \
@@ -41,12 +41,12 @@ python -m lerobot.scripts.train \
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> \
@@ -59,4 +59,4 @@ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a
59
 
60
  ## Model Details
61
 
62
- * **License:** apache-2.0
 
1
  ---
2
+ datasets: unknown
3
  library_name: lerobot
4
  license: apache-2.0
5
  model_name: act
6
  pipeline_tag: robotics
7
  tags:
8
  - act
 
9
  - robotics
10
+ - lerobot
11
  ---
12
 
13
  # Model Card for act
 
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> \
 
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> \
 
59
 
60
  ## Model Details
61
 
62
+ - **License:** apache-2.0
config.json CHANGED
@@ -1,11 +1,6 @@
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",
@@ -47,6 +42,11 @@
47
  "license": null,
48
  "chunk_size": 100,
49
  "n_action_steps": 100,
 
 
 
 
 
50
  "vision_backbone": "resnet18",
51
  "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
52
  "replace_final_stride_with_dilation": false,
 
1
  {
2
  "type": "act",
3
  "n_obs_steps": 1,
 
 
 
 
 
4
  "input_features": {
5
  "observation.state": {
6
  "type": "STATE",
 
42
  "license": null,
43
  "chunk_size": 100,
44
  "n_action_steps": 100,
45
+ "normalization_mapping": {
46
+ "VISUAL": "MEAN_STD",
47
+ "STATE": "MEAN_STD",
48
+ "ACTION": "MEAN_STD"
49
+ },
50
  "vision_backbone": "resnet18",
51
  "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
52
  "replace_final_stride_with_dilation": false,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7dec1e654ce3a5b0d7d493777d255e4af318129f81e6d0489cefa45b43cea99b
3
- size 206701064
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4c49d54968eafdd9377fa302de80993a41332b783ef80643b30f7c1d274cd21
3
+ size 206699736
policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "device_processor",
6
+ "config": {
7
+ "device": "cpu",
8
+ "float_dtype": null
9
+ }
10
+ },
11
+ {
12
+ "registry_name": "unnormalizer_processor",
13
+ "config": {
14
+ "eps": 1e-08,
15
+ "features": {
16
+ "action": {
17
+ "type": "ACTION",
18
+ "shape": [
19
+ 6
20
+ ]
21
+ }
22
+ },
23
+ "norm_map": {
24
+ "VISUAL": "MEAN_STD",
25
+ "STATE": "MEAN_STD",
26
+ "ACTION": "MEAN_STD"
27
+ }
28
+ },
29
+ "state_file": "policy_postprocessor_step_1_unnormalizer_processor.safetensors"
30
+ }
31
+ ]
32
+ }
policy_postprocessor_step_1_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dded4235e025ad04eb5e66a2b378b5ae7dcdf94f03e27970e78e9f1de628d5b3
3
+ size 784
policy_preprocessor.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 6
30
+ ]
31
+ },
32
+ "observation.images.top": {
33
+ "type": "VISUAL",
34
+ "shape": [
35
+ 3,
36
+ 480,
37
+ 640
38
+ ]
39
+ },
40
+ "observation.images.wrist": {
41
+ "type": "VISUAL",
42
+ "shape": [
43
+ 3,
44
+ 480,
45
+ 640
46
+ ]
47
+ },
48
+ "action": {
49
+ "type": "ACTION",
50
+ "shape": [
51
+ 6
52
+ ]
53
+ }
54
+ },
55
+ "norm_map": {
56
+ "VISUAL": "MEAN_STD",
57
+ "STATE": "MEAN_STD",
58
+ "ACTION": "MEAN_STD"
59
+ }
60
+ },
61
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
62
+ }
63
+ ]
64
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dded4235e025ad04eb5e66a2b378b5ae7dcdf94f03e27970e78e9f1de628d5b3
3
+ size 784