pravsels commited on
Commit
6433560
·
verified ·
1 Parent(s): afb9c69

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +85 -0
  3. model.safetensors +3 -0
  4. train_config.json +194 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: danaaubakirova/so100_task_2
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: rewact
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - rewact
11
+ ---
12
+
13
+ # Model Card for rewact
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
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,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "rewact",
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.top": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ },
24
+ "observation.images.wrist": {
25
+ "type": "VISUAL",
26
+ "shape": [
27
+ 3,
28
+ 480,
29
+ 640
30
+ ]
31
+ }
32
+ },
33
+ "output_features": {
34
+ "action": {
35
+ "type": "ACTION",
36
+ "shape": [
37
+ 6
38
+ ]
39
+ }
40
+ },
41
+ "device": null,
42
+ "use_amp": false,
43
+ "push_to_hub": true,
44
+ "repo_id": "pravsels/test_container",
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "chunk_size": 100,
49
+ "n_action_steps": 100,
50
+ "vision_backbone": "sam3_vit_l",
51
+ "pretrained_backbone_weights": "./weights/sam3.pt",
52
+ "replace_final_stride_with_dilation": false,
53
+ "pre_norm": false,
54
+ "dim_model": 512,
55
+ "n_heads": 8,
56
+ "dim_feedforward": 3200,
57
+ "feedforward_activation": "relu",
58
+ "n_encoder_layers": 4,
59
+ "n_decoder_layers": 1,
60
+ "use_vae": true,
61
+ "latent_dim": 32,
62
+ "n_vae_encoder_layers": 4,
63
+ "temporal_ensemble_coeff": null,
64
+ "dropout": 0.1,
65
+ "kl_weight": 10.0,
66
+ "optimizer_lr": 1e-05,
67
+ "optimizer_weight_decay": 0.0001,
68
+ "optimizer_lr_backbone": 1e-05,
69
+ "use_reward_head": true,
70
+ "reward_loss_weight": 2.0,
71
+ "vision_encoder_type": "sam3",
72
+ "freeze_vision_encoder": true,
73
+ "dinov3": null,
74
+ "vjepa2": null,
75
+ "sam3": {
76
+ "variant": "vit_l",
77
+ "weights": "./weights/sam3.pt",
78
+ "fpn_level": 2,
79
+ "pos_embed_type": "sam3",
80
+ "patch_merge_stages": 2,
81
+ "use_patch_merge": false,
82
+ "input_resolution": 1008,
83
+ "compile_backbone": false
84
+ }
85
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:390068ed0fcb8b4d22b3dc9edba97dcd7c2a27300e94d9cf4e2109f7ed432394
3
+ size 3529262960
train_config.json ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "danaaubakirova/so100_task_2",
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": "pyav"
69
+ },
70
+ "env": null,
71
+ "policy": {
72
+ "type": "rewact",
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.top": {
87
+ "type": "VISUAL",
88
+ "shape": [
89
+ 3,
90
+ 480,
91
+ 640
92
+ ]
93
+ },
94
+ "observation.images.wrist": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 480,
99
+ 640
100
+ ]
101
+ }
102
+ },
103
+ "output_features": {
104
+ "action": {
105
+ "type": "ACTION",
106
+ "shape": [
107
+ 6
108
+ ]
109
+ }
110
+ },
111
+ "device": null,
112
+ "use_amp": false,
113
+ "push_to_hub": true,
114
+ "repo_id": "pravsels/test_container",
115
+ "private": null,
116
+ "tags": null,
117
+ "license": null,
118
+ "chunk_size": 100,
119
+ "n_action_steps": 100,
120
+ "vision_backbone": "sam3_vit_l",
121
+ "pretrained_backbone_weights": "./weights/sam3.pt",
122
+ "replace_final_stride_with_dilation": false,
123
+ "pre_norm": false,
124
+ "dim_model": 512,
125
+ "n_heads": 8,
126
+ "dim_feedforward": 3200,
127
+ "feedforward_activation": "relu",
128
+ "n_encoder_layers": 4,
129
+ "n_decoder_layers": 1,
130
+ "use_vae": true,
131
+ "latent_dim": 32,
132
+ "n_vae_encoder_layers": 4,
133
+ "temporal_ensemble_coeff": null,
134
+ "dropout": 0.1,
135
+ "kl_weight": 10.0,
136
+ "optimizer_lr": 1e-05,
137
+ "optimizer_weight_decay": 0.0001,
138
+ "optimizer_lr_backbone": 1e-05,
139
+ "use_reward_head": true,
140
+ "reward_loss_weight": 2.0,
141
+ "vision_encoder_type": "sam3",
142
+ "freeze_vision_encoder": true,
143
+ "dinov3": null,
144
+ "vjepa2": null,
145
+ "sam3": {
146
+ "variant": "vit_l",
147
+ "weights": "./weights/sam3.pt",
148
+ "fpn_level": 2,
149
+ "pos_embed_type": "sam3",
150
+ "patch_merge_stages": 2,
151
+ "use_patch_merge": false,
152
+ "input_resolution": 1008,
153
+ "compile_backbone": false
154
+ }
155
+ },
156
+ "output_dir": "outputs/train/test_container",
157
+ "job_name": "test_container",
158
+ "resume": false,
159
+ "seed": 1000,
160
+ "num_workers": 4,
161
+ "batch_size": 1,
162
+ "steps": 10,
163
+ "eval_freq": -1,
164
+ "log_freq": 10,
165
+ "save_checkpoint": true,
166
+ "save_freq": 10,
167
+ "use_policy_training_preset": true,
168
+ "optimizer": {
169
+ "type": "adamw",
170
+ "lr": 1e-05,
171
+ "weight_decay": 0.0001,
172
+ "grad_clip_norm": 10.0,
173
+ "betas": [
174
+ 0.9,
175
+ 0.999
176
+ ],
177
+ "eps": 1e-08
178
+ },
179
+ "scheduler": null,
180
+ "eval": {
181
+ "n_episodes": 50,
182
+ "batch_size": 50,
183
+ "use_async_envs": false
184
+ },
185
+ "wandb": {
186
+ "enable": false,
187
+ "disable_artifact": false,
188
+ "project": "lerobot",
189
+ "entity": null,
190
+ "notes": null,
191
+ "run_id": null,
192
+ "mode": null
193
+ }
194
+ }