wzn12 commited on
Commit
f32e2c4
·
verified ·
1 Parent(s): e036ce5

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +58 -0
  3. model.safetensors +3 -0
  4. train_config.json +125 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: wzn12/teleop_ring_labeled
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: reward_classifier
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - reward_classifier
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 6
12
+ ]
13
+ },
14
+ "observation.image.handeye": {
15
+ "type": "VISUAL",
16
+ "shape": [
17
+ 3,
18
+ 600,
19
+ 800
20
+ ]
21
+ },
22
+ "observation.image.global": {
23
+ "type": "VISUAL",
24
+ "shape": [
25
+ 3,
26
+ 600,
27
+ 800
28
+ ]
29
+ }
30
+ },
31
+ "output_features": {
32
+ "action": {
33
+ "type": "ACTION",
34
+ "shape": [
35
+ 6
36
+ ]
37
+ }
38
+ },
39
+ "device": "cuda",
40
+ "use_amp": true,
41
+ "push_to_hub": true,
42
+ "repo_id": "wzn12/reward_classifier_resnet10_ring_224",
43
+ "private": null,
44
+ "tags": null,
45
+ "license": null,
46
+ "name": "reward_classifier",
47
+ "num_classes": 2,
48
+ "hidden_dim": 256,
49
+ "latent_dim": 256,
50
+ "image_embedding_pooling_dim": 8,
51
+ "dropout_rate": 0.1,
52
+ "model_name": "helper2424/resnet10",
53
+ "model_type": "cnn",
54
+ "num_cameras": 2,
55
+ "learning_rate": 0.0001,
56
+ "weight_decay": 0.01,
57
+ "grad_clip_norm": 1.0
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92d107675ec40ec988af93a1b5893adc1ac7651c0725734e21c07bdaada58e97
3
+ size 29084596
train_config.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "wzn12/teleop_ring_labeled",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
8
+ "max_num_transforms": 1,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "resize": {
12
+ "weight": 1.0,
13
+ "type": "Resize",
14
+ "kwargs": {
15
+ "size": [
16
+ 224,
17
+ 224
18
+ ],
19
+ "antialias": true
20
+ }
21
+ }
22
+ }
23
+ },
24
+ "revision": null,
25
+ "use_imagenet_stats": true,
26
+ "video_backend": "torchcodec"
27
+ },
28
+ "env": null,
29
+ "policy": {
30
+ "type": "reward_classifier",
31
+ "n_obs_steps": 1,
32
+ "normalization_mapping": {
33
+ "VISUAL": "MEAN_STD"
34
+ },
35
+ "input_features": {
36
+ "observation.state": {
37
+ "type": "STATE",
38
+ "shape": [
39
+ 6
40
+ ]
41
+ },
42
+ "observation.image.handeye": {
43
+ "type": "VISUAL",
44
+ "shape": [
45
+ 3,
46
+ 600,
47
+ 800
48
+ ]
49
+ },
50
+ "observation.image.global": {
51
+ "type": "VISUAL",
52
+ "shape": [
53
+ 3,
54
+ 600,
55
+ 800
56
+ ]
57
+ }
58
+ },
59
+ "output_features": {
60
+ "action": {
61
+ "type": "ACTION",
62
+ "shape": [
63
+ 6
64
+ ]
65
+ }
66
+ },
67
+ "device": "cuda",
68
+ "use_amp": true,
69
+ "push_to_hub": true,
70
+ "repo_id": "wzn12/reward_classifier_resnet10_ring_224",
71
+ "private": null,
72
+ "tags": null,
73
+ "license": null,
74
+ "name": "reward_classifier",
75
+ "num_classes": 2,
76
+ "hidden_dim": 256,
77
+ "latent_dim": 256,
78
+ "image_embedding_pooling_dim": 8,
79
+ "dropout_rate": 0.1,
80
+ "model_name": "helper2424/resnet10",
81
+ "model_type": "cnn",
82
+ "num_cameras": 2,
83
+ "learning_rate": 0.0001,
84
+ "weight_decay": 0.01,
85
+ "grad_clip_norm": 1.0
86
+ },
87
+ "output_dir": "outputs/reward_classifier_resnet10_ring_224_v2",
88
+ "job_name": "resnet10_ring_224",
89
+ "resume": false,
90
+ "seed": 1000,
91
+ "num_workers": 4,
92
+ "batch_size": 16,
93
+ "steps": 6000,
94
+ "eval_freq": 500,
95
+ "log_freq": 200,
96
+ "save_checkpoint": true,
97
+ "save_freq": 2000,
98
+ "use_policy_training_preset": true,
99
+ "optimizer": {
100
+ "type": "adamw",
101
+ "lr": 0.0001,
102
+ "weight_decay": 0.01,
103
+ "grad_clip_norm": 1.0,
104
+ "betas": [
105
+ 0.9,
106
+ 0.999
107
+ ],
108
+ "eps": 1e-08
109
+ },
110
+ "scheduler": null,
111
+ "eval": {
112
+ "n_episodes": 50,
113
+ "batch_size": 50,
114
+ "use_async_envs": false
115
+ },
116
+ "wandb": {
117
+ "enable": true,
118
+ "disable_artifact": false,
119
+ "project": "lerobot_ring_reward_classifier",
120
+ "entity": null,
121
+ "notes": "ResNet10 reward classifier 224x224 resolution",
122
+ "run_id": "nb7xzuj4",
123
+ "mode": null
124
+ }
125
+ }