jsag commited on
Commit
586fe55
·
verified ·
1 Parent(s): 5c6d2db

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +3 -3
  3. model.safetensors +1 -1
  4. train_config.json +9 -9
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: hnghia517/lerobot
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - diffusion
9
+ - lerobot
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for diffusion
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ [Diffusion Policy](https://huggingface.co/papers/2303.04137) treats visuomotor control as a generative diffusion process, producing smooth, multi-step action trajectories that excel at contact-rich manipulation.
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
+ lerobot-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
+ 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 CHANGED
@@ -35,12 +35,12 @@
35
  },
36
  "device": "cuda",
37
  "use_amp": false,
38
- "push_to_hub": false,
39
- "repo_id": null,
40
  "private": null,
41
  "tags": null,
42
  "license": null,
43
- "pretrained_path": "outputs/train/diffusion_experiment/checkpoints/last/pretrained_model",
44
  "horizon": 16,
45
  "n_action_steps": 8,
46
  "normalization_mapping": {
 
35
  },
36
  "device": "cuda",
37
  "use_amp": false,
38
+ "push_to_hub": true,
39
+ "repo_id": "jsag/LerobotDiffusion",
40
  "private": null,
41
  "tags": null,
42
  "license": null,
43
+ "pretrained_path": null,
44
  "horizon": 16,
45
  "n_action_steps": 8,
46
  "normalization_mapping": {
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:27e66a8b7127a0d08581b7b7d5279a6924bc5789fbd80c7abb8998683d12b97f
3
  size 1066516384
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a41f7da22f0b2618a5a3431bc2f8ae19709fcd5a6f3334c05e1810f6883ffb96
3
  size 1066516384
train_config.json CHANGED
@@ -117,12 +117,12 @@
117
  },
118
  "device": "cuda",
119
  "use_amp": false,
120
- "push_to_hub": false,
121
- "repo_id": null,
122
  "private": null,
123
  "tags": null,
124
  "license": null,
125
- "pretrained_path": "outputs/train/diffusion_experiment/checkpoints/last/pretrained_model",
126
  "horizon": 16,
127
  "n_action_steps": 8,
128
  "normalization_mapping": {
@@ -170,13 +170,13 @@
170
  "scheduler_name": "cosine",
171
  "scheduler_warmup_steps": 500
172
  },
173
- "output_dir": "outputs/train/diffusion_experiment",
174
  "job_name": "diffusion_training",
175
- "resume": true,
176
  "seed": 1000,
177
  "num_workers": 8,
178
  "batch_size": 64,
179
- "steps": 20000,
180
  "eval_freq": -1,
181
  "log_freq": 100,
182
  "save_checkpoint": true,
@@ -204,14 +204,14 @@
204
  "use_async_envs": false
205
  },
206
  "wandb": {
207
- "enable": false,
208
  "disable_artifact": false,
209
  "project": "lerobot",
210
  "entity": null,
211
  "notes": null,
212
- "run_id": null,
213
  "mode": null
214
  },
215
- "checkpoint_path": "outputs/train/diffusion_experiment/checkpoints/last",
216
  "rename_map": {}
217
  }
 
117
  },
118
  "device": "cuda",
119
  "use_amp": false,
120
+ "push_to_hub": true,
121
+ "repo_id": "jsag/LerobotDiffusion",
122
  "private": null,
123
  "tags": null,
124
  "license": null,
125
+ "pretrained_path": null,
126
  "horizon": 16,
127
  "n_action_steps": 8,
128
  "normalization_mapping": {
 
170
  "scheduler_name": "cosine",
171
  "scheduler_warmup_steps": 500
172
  },
173
+ "output_dir": "outputs/train/diffusion_experiment2",
174
  "job_name": "diffusion_training",
175
+ "resume": false,
176
  "seed": 1000,
177
  "num_workers": 8,
178
  "batch_size": 64,
179
+ "steps": 60000,
180
  "eval_freq": -1,
181
  "log_freq": 100,
182
  "save_checkpoint": true,
 
204
  "use_async_envs": false
205
  },
206
  "wandb": {
207
+ "enable": true,
208
  "disable_artifact": false,
209
  "project": "lerobot",
210
  "entity": null,
211
  "notes": null,
212
+ "run_id": "au4pslh3",
213
  "mode": null
214
  },
215
+ "checkpoint_path": null,
216
  "rename_map": {}
217
  }