Robotics
LeRobot
Safetensors
diffusion
nvail23 commited on
Commit
bb9d53b
·
verified ·
1 Parent(s): 7e4a1c3

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +92 -0
  3. model.safetensors +3 -0
  4. train_config.json +86 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: nvail23/franka_point_housing
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - diffusion
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 ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 22
9
+ ]
10
+ },
11
+ "observation.images.wrist_image": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.exterior_image": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 8
33
+ ]
34
+ }
35
+ },
36
+ "device": "cpu",
37
+ "use_amp": false,
38
+ "push_to_hub": [
39
+ "push_to_hub"
40
+ ],
41
+ "repo_id": "nvail23/diffusion_policy",
42
+ "private": null,
43
+ "tags": null,
44
+ "license": null,
45
+ "pretrained_path": null,
46
+ "horizon": 16,
47
+ "n_action_steps": 8,
48
+ "normalization_mapping": {
49
+ "VISUAL": "MEAN_STD",
50
+ "STATE": "MIN_MAX",
51
+ "ACTION": "MIN_MAX"
52
+ },
53
+ "drop_n_last_frames": 7,
54
+ "vision_backbone": "resnet18",
55
+ "crop_shape": [
56
+ 84,
57
+ 84
58
+ ],
59
+ "crop_is_random": true,
60
+ "pretrained_backbone_weights": null,
61
+ "use_group_norm": true,
62
+ "spatial_softmax_num_keypoints": 32,
63
+ "use_separate_rgb_encoder_per_camera": false,
64
+ "down_dims": [
65
+ 512,
66
+ 1024,
67
+ 2048
68
+ ],
69
+ "kernel_size": 5,
70
+ "n_groups": 8,
71
+ "diffusion_step_embed_dim": 128,
72
+ "use_film_scale_modulation": true,
73
+ "noise_scheduler_type": "DDPM",
74
+ "num_train_timesteps": 100,
75
+ "beta_schedule": "squaredcos_cap_v2",
76
+ "beta_start": 0.0001,
77
+ "beta_end": 0.02,
78
+ "prediction_type": "epsilon",
79
+ "clip_sample": true,
80
+ "clip_sample_range": 1.0,
81
+ "num_inference_steps": null,
82
+ "do_mask_loss_for_padding": false,
83
+ "optimizer_lr": 0.0001,
84
+ "optimizer_betas": [
85
+ 0.95,
86
+ 0.999
87
+ ],
88
+ "optimizer_eps": 1e-08,
89
+ "optimizer_weight_decay": 1e-06,
90
+ "scheduler_name": "cosine",
91
+ "scheduler_warmup_steps": 500
92
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec7a56e58b0e1d67dadb0bd593f0f1f09abec84d9cfecace658227d06f6cd06c
3
+ size 1070215080
train_config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "nvail23/franka_point_housing",
4
+ "root": "/home/sf-isaaclab-01/.cache/huggingface/lerobot/franka_6/point_housing_20260302_v01",
5
+ "episodes": null,
6
+ "revision": null,
7
+ "use_imagenet_stats": true,
8
+ "video_backend": "torchcodec",
9
+ "streaming": false
10
+ },
11
+ "env": null,
12
+ "policy": {
13
+ "n_obs_steps": 2,
14
+ "device": "cpu",
15
+ "use_amp": false,
16
+ "repo_id": "nvail23/diffusion_policy",
17
+ "private": null,
18
+ "tags": null,
19
+ "license": null,
20
+ "pretrained_path": null,
21
+ "horizon": 16,
22
+ "n_action_steps": 8,
23
+ "drop_n_last_frames": 7,
24
+ "vision_backbone": "resnet18",
25
+ "crop_is_random": true,
26
+ "pretrained_backbone_weights": null,
27
+ "use_group_norm": true,
28
+ "spatial_softmax_num_keypoints": 32,
29
+ "use_separate_rgb_encoder_per_camera": false,
30
+ "kernel_size": 5,
31
+ "n_groups": 8,
32
+ "diffusion_step_embed_dim": 128,
33
+ "use_film_scale_modulation": true,
34
+ "noise_scheduler_type": "DDPM",
35
+ "num_train_timesteps": 100,
36
+ "beta_schedule": "squaredcos_cap_v2",
37
+ "beta_start": 0.0001,
38
+ "beta_end": 0.02,
39
+ "prediction_type": "epsilon",
40
+ "clip_sample": true,
41
+ "clip_sample_range": 1.0,
42
+ "num_inference_steps": null,
43
+ "do_mask_loss_for_padding": false,
44
+ "optimizer_lr": 0.0001,
45
+ "optimizer_eps": 1e-08,
46
+ "optimizer_weight_decay": 1e-06,
47
+ "scheduler_name": "cosine",
48
+ "scheduler_warmup_steps": 500
49
+ },
50
+ "output_dir": "outputs/train/diffusion_test",
51
+ "job_name": "diffusion_policy_test7",
52
+ "resume": false,
53
+ "seed": 1000,
54
+ "num_workers": 4,
55
+ "batch_size": 8,
56
+ "steps": 20000,
57
+ "eval_freq": 2000,
58
+ "log_freq": 200,
59
+ "save_checkpoint": true,
60
+ "save_freq": 10000,
61
+ "use_policy_training_preset": true,
62
+ "eval": {
63
+ "n_episodes": 10,
64
+ "batch_size": 8,
65
+ "use_async_envs": false
66
+ },
67
+ "wandb": {
68
+ "enable": false,
69
+ "disable_artifact": false,
70
+ "project": "lerobot",
71
+ "entity": null,
72
+ "notes": null,
73
+ "run_id": null,
74
+ "mode": "online"
75
+ },
76
+ "optimizer": {
77
+ "lr": 0.0001,
78
+ "weight_decay": 1e-06,
79
+ "grad_clip_norm": 10.0,
80
+ "eps": 1e-08
81
+ },
82
+ "scheduler": {
83
+ "num_warmup_steps": 500,
84
+ "name": "cosine"
85
+ }
86
+ }