GaryBUAA commited on
Commit
c99c5f0
·
verified ·
1 Parent(s): fa62018

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +50 -0
  3. model.safetensors +3 -0
  4. train_config.json +166 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: GaryBUAA/hil_test_0804_reward_classifier
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: reward_classifier
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - reward_classifier
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for reward_classifier
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ A reward classifier is a lightweight neural network that scores observations or trajectories for task success, providing a learned reward signal or offline evaluation when explicit rewards are unavailable.
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,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "reward_classifier",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD"
6
+ },
7
+ "input_features": {
8
+ "observation.state": {
9
+ "type": "STATE",
10
+ "shape": [
11
+ 21
12
+ ]
13
+ },
14
+ "observation.images.wrist": {
15
+ "type": "VISUAL",
16
+ "shape": [
17
+ 3,
18
+ 128,
19
+ 128
20
+ ]
21
+ }
22
+ },
23
+ "output_features": {
24
+ "action": {
25
+ "type": "ACTION",
26
+ "shape": [
27
+ 4
28
+ ]
29
+ }
30
+ },
31
+ "device": "cuda",
32
+ "use_amp": true,
33
+ "push_to_hub": true,
34
+ "repo_id": "GaryBUAA/hil_test_0804_reward_classifier",
35
+ "private": null,
36
+ "tags": null,
37
+ "license": null,
38
+ "name": "reward_classifier",
39
+ "num_classes": 2,
40
+ "hidden_dim": 256,
41
+ "latent_dim": 256,
42
+ "image_embedding_pooling_dim": 8,
43
+ "dropout_rate": 0.1,
44
+ "model_name": "helper2424/resnet10",
45
+ "model_type": "cnn",
46
+ "num_cameras": 1,
47
+ "learning_rate": 0.0001,
48
+ "weight_decay": 0.01,
49
+ "grad_clip_norm": 1.0
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6d6603b1cb33d3fff1e9f58abee34f0062fed79a32fe10109c2df49a3a02079
3
+ size 24358092
train_config.json ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "GaryBUAA/hil_test_0804_reward_classifier",
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
+ }
62
+ },
63
+ "revision": null,
64
+ "use_imagenet_stats": true,
65
+ "video_backend": "torchcodec"
66
+ },
67
+ "env": null,
68
+ "policy": {
69
+ "type": "reward_classifier",
70
+ "n_obs_steps": 1,
71
+ "normalization_mapping": {
72
+ "VISUAL": "MEAN_STD"
73
+ },
74
+ "input_features": {
75
+ "observation.state": {
76
+ "type": "STATE",
77
+ "shape": [
78
+ 21
79
+ ]
80
+ },
81
+ "observation.images.wrist": {
82
+ "type": "VISUAL",
83
+ "shape": [
84
+ 3,
85
+ 128,
86
+ 128
87
+ ]
88
+ }
89
+ },
90
+ "output_features": {
91
+ "action": {
92
+ "type": "ACTION",
93
+ "shape": [
94
+ 4
95
+ ]
96
+ }
97
+ },
98
+ "device": "cuda",
99
+ "use_amp": true,
100
+ "push_to_hub": true,
101
+ "repo_id": "GaryBUAA/hil_test_0804_reward_classifier",
102
+ "private": null,
103
+ "tags": null,
104
+ "license": null,
105
+ "name": "reward_classifier",
106
+ "num_classes": 2,
107
+ "hidden_dim": 256,
108
+ "latent_dim": 256,
109
+ "image_embedding_pooling_dim": 8,
110
+ "dropout_rate": 0.1,
111
+ "model_name": "helper2424/resnet10",
112
+ "model_type": "cnn",
113
+ "num_cameras": 1,
114
+ "learning_rate": 0.0001,
115
+ "weight_decay": 0.01,
116
+ "grad_clip_norm": 1.0
117
+ },
118
+ "output_dir": "outputs/train/2025-08-04/22-34-30_reward-classifier",
119
+ "job_name": "reward-classifier",
120
+ "resume": false,
121
+ "seed": 2,
122
+ "num_workers": 4,
123
+ "batch_size": 16,
124
+ "steps": 5000,
125
+ "eval_freq": 1000,
126
+ "log_freq": 10,
127
+ "save_checkpoint": true,
128
+ "save_freq": 1000,
129
+ "use_policy_training_preset": true,
130
+ "optimizer": {
131
+ "type": "adamw",
132
+ "lr": 0.0001,
133
+ "weight_decay": 0.01,
134
+ "grad_clip_norm": 1.0,
135
+ "betas": [
136
+ 0.9,
137
+ 0.999
138
+ ],
139
+ "eps": 1e-08
140
+ },
141
+ "scheduler": null,
142
+ "eval": {
143
+ "n_episodes": 50,
144
+ "batch_size": 50,
145
+ "use_async_envs": false
146
+ },
147
+ "tracker": "none",
148
+ "wandb": {
149
+ "enable": true,
150
+ "disable_artifact": false,
151
+ "project": "reward-classifier",
152
+ "entity": null,
153
+ "notes": null,
154
+ "run_id": null,
155
+ "mode": null
156
+ },
157
+ "swanlab": {
158
+ "enable": false,
159
+ "disable_artifact": false,
160
+ "project": "lerobot",
161
+ "entity": null,
162
+ "notes": null,
163
+ "run_id": null,
164
+ "mode": null
165
+ }
166
+ }