Robotics
LeRobot
Safetensors
English
flow-matching
diffusion-policy
rectified-flow
so101
leisaac
pick-orange
isaac-sim
Instructions to use wsagi/FlowHeads-DiffusionPolicy-PickOrange with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use wsagi/FlowHeads-DiffusionPolicy-PickOrange with LeRobot:
- Notebooks
- Google Colab
- Kaggle
feat: model card + processors + config + demo video
Browse files- .gitattributes +1 -0
- README.md +75 -0
- config.json +95 -0
- demo.mp4 +3 -0
- policy_postprocessor.json +32 -0
- policy_postprocessor_step_0_unnormalizer_processor.safetensors +3 -0
- policy_preprocessor.json +64 -0
- policy_preprocessor_step_3_normalizer_processor.safetensors +3 -0
- train_config.json +229 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
demo.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: lerobot
|
| 4 |
+
pipeline_tag: robotics
|
| 5 |
+
tags:
|
| 6 |
+
- flow-matching
|
| 7 |
+
- diffusion-policy
|
| 8 |
+
- rectified-flow
|
| 9 |
+
- lerobot
|
| 10 |
+
- so101
|
| 11 |
+
- leisaac
|
| 12 |
+
- pick-orange
|
| 13 |
+
- isaac-sim
|
| 14 |
+
base_model: []
|
| 15 |
+
datasets:
|
| 16 |
+
- LightwheelAI/leisaac-pick-orange
|
| 17 |
+
language:
|
| 18 |
+
- en
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# FlowHeads-DiffusionPolicy-PickOrange (DP-FlowHead)
|
| 22 |
+
|
| 23 |
+
**DP-FlowHead** — a [LeRobot](https://github.com/huggingface/lerobot) Diffusion-Policy
|
| 24 |
+
conv-UNet (ResNet-18 + SpatialSoftmax + FiLM 1D-conv UNet, ~267M) whose **DDPM
|
| 25 |
+
denoising head is replaced by a rectified-flow head**: predict the straight-line
|
| 26 |
+
velocity `v = x1 − x0` and sample by **Euler ODE** integration (NFE=10). Trained
|
| 27 |
+
**from scratch** on [LeIsaac SO-101 PickOrange](https://github.com/LightwheelAI/leisaac)
|
| 28 |
+
(single arm, 2 RGB cams, 60 demos). This ckpt = **step-9800 ≈ 4.3 epoch (best)**.
|
| 29 |
+
|
| 30 |
+
针对 [LeIsaac SO-101 PickOrange](https://github.com/LightwheelAI/leisaac) **从头训练**的
|
| 31 |
+
LeRobot 策略:在 Diffusion-Policy 的 conv-UNet 骨干上,把 **DDPM 去噪头换成 rectified-flow 头**
|
| 32 |
+
(速度场 `v=x1−x0` + Euler 10 步积分)。本 ckpt = **step-9800 ≈ 4.3 epoch(best)**。
|
| 33 |
+
|
| 34 |
+
<video controls width="640" src="https://huggingface.co/wsagi/FlowHeads-DiffusionPolicy-PickOrange/resolve/main/demo.mp4"></video>
|
| 35 |
+
|
| 36 |
+
> _Closed-loop demo in Isaac Sim — SO-101 picking oranges into the plate._
|
| 37 |
+
|
| 38 |
+
## 🔗 Project repos / 项目仓库
|
| 39 |
+
|
| 40 |
+
- [**vitorcen/FlowHeads**](https://github.com/vitorcen/FlowHeads) — the flow-matching action-head umbrella (this model's code: `flowdp/`)
|
| 41 |
+
- [**vitorcen/LeIsaac-Training**](https://github.com/vitorcen/LeIsaac-Training) — the LeIsaac PickOrange benchmark + eval harness
|
| 42 |
+
- [**vitorcen/isaaclab-experience**](https://github.com/vitorcen/isaaclab-experience) — Isaac Lab multi-policy umbrella (parent project)
|
| 43 |
+
|
| 44 |
+
## Results — strict 20-round (PickOrange, closed-loop Isaac)
|
| 45 |
+
|
| 46 |
+
**Headed, 20 rounds (60 episodes), `EPISODE_LENGTH_S=120`, `MAX_ROUND_WALL_S=180`, h=8.**
|
| 47 |
+
|
| 48 |
+
| metric | value |
|
| 49 |
+
|---|---|
|
| 50 |
+
| E(🍊)/ep | **1.35 / 3 = 45.0 %** (27/60) |
|
| 51 |
+
| P(3) — full round (all 3) | 20 % (4/20) |
|
| 52 |
+
| P(≥2) | 40 % |
|
| 53 |
+
| avg episode | 171 s |
|
| 54 |
+
| 20-ep raw | `[3,1,2,3,1,2,1,0,3,1,0,2,2,1,1,1,3,0,0,0]` |
|
| 55 |
+
|
| 56 |
+
**45.0 % ties the strongest baseline ACT (43.3 %)** on this 60-demo task (a single
|
| 57 |
+
20-round run carries ±~9 %, so this is a tie, not a win). Notably, an earlier
|
| 58 |
+
5-round *quick* eval with a tight 90 s wall-cap had **mis-scored this policy near zero**:
|
| 59 |
+
DP-FlowHead is slow (successful episodes take ~136 s) and the 90 s cap truncated its
|
| 60 |
+
completions. The strict 180 s eval is what reveals the real 45 %. See the
|
| 61 |
+
[FlowHeads architecture × objective study](https://github.com/vitorcen/FlowHeads) for the
|
| 62 |
+
full {conv-UNet, DiT} × {DDPM, flow} matrix.
|
| 63 |
+
|
| 64 |
+
## Usage
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from lerobot.policies.factory import get_policy_class
|
| 68 |
+
# requires the FlowHeads package on PYTHONPATH so "flowdp" is registered:
|
| 69 |
+
# pip install -e . # from https://github.com/vitorcen/FlowHeads
|
| 70 |
+
policy = get_policy_class("flowdp").from_pretrained("wsagi/FlowHeads-DiffusionPolicy-PickOrange")
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
Config: `type=flowdp`, `n_action_steps=8`, `num_inference_steps=10` (Euler NFE).
|
| 74 |
+
Closed-loop scoring uses the LeIsaac benchmark harness
|
| 75 |
+
(`scripts/benchmark/run_one.sh`, eval-side lerobot 0.4.x).
|
config.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "flowdp",
|
| 3 |
+
"n_obs_steps": 2,
|
| 4 |
+
"input_features": {
|
| 5 |
+
"observation.state": {
|
| 6 |
+
"type": "STATE",
|
| 7 |
+
"shape": [
|
| 8 |
+
6
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
"observation.images.front": {
|
| 12 |
+
"type": "VISUAL",
|
| 13 |
+
"shape": [
|
| 14 |
+
3,
|
| 15 |
+
480,
|
| 16 |
+
640
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
"observation.images.wrist": {
|
| 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 |
+
6
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"device": "cuda",
|
| 37 |
+
"use_amp": false,
|
| 38 |
+
"use_peft": false,
|
| 39 |
+
"push_to_hub": false,
|
| 40 |
+
"repo_id": null,
|
| 41 |
+
"private": null,
|
| 42 |
+
"tags": null,
|
| 43 |
+
"license": null,
|
| 44 |
+
"pretrained_path": null,
|
| 45 |
+
"horizon": 16,
|
| 46 |
+
"n_action_steps": 8,
|
| 47 |
+
"normalization_mapping": {
|
| 48 |
+
"VISUAL": "MEAN_STD",
|
| 49 |
+
"STATE": "MIN_MAX",
|
| 50 |
+
"ACTION": "MIN_MAX"
|
| 51 |
+
},
|
| 52 |
+
"drop_n_last_frames": 7,
|
| 53 |
+
"vision_backbone": "resnet18",
|
| 54 |
+
"resize_shape": [
|
| 55 |
+
480,
|
| 56 |
+
640
|
| 57 |
+
],
|
| 58 |
+
"crop_ratio": 1.0,
|
| 59 |
+
"crop_shape": null,
|
| 60 |
+
"crop_is_random": true,
|
| 61 |
+
"pretrained_backbone_weights": null,
|
| 62 |
+
"use_group_norm": true,
|
| 63 |
+
"spatial_softmax_num_keypoints": 32,
|
| 64 |
+
"use_separate_rgb_encoder_per_camera": false,
|
| 65 |
+
"down_dims": [
|
| 66 |
+
512,
|
| 67 |
+
1024,
|
| 68 |
+
2048
|
| 69 |
+
],
|
| 70 |
+
"kernel_size": 5,
|
| 71 |
+
"n_groups": 8,
|
| 72 |
+
"diffusion_step_embed_dim": 128,
|
| 73 |
+
"use_film_scale_modulation": true,
|
| 74 |
+
"noise_scheduler_type": "DDPM",
|
| 75 |
+
"num_train_timesteps": 100,
|
| 76 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 77 |
+
"beta_start": 0.0001,
|
| 78 |
+
"beta_end": 0.02,
|
| 79 |
+
"prediction_type": "epsilon",
|
| 80 |
+
"clip_sample": true,
|
| 81 |
+
"clip_sample_range": 1.0,
|
| 82 |
+
"num_inference_steps": 10,
|
| 83 |
+
"compile_model": false,
|
| 84 |
+
"compile_mode": "reduce-overhead",
|
| 85 |
+
"do_mask_loss_for_padding": false,
|
| 86 |
+
"optimizer_lr": 0.0001,
|
| 87 |
+
"optimizer_betas": [
|
| 88 |
+
0.95,
|
| 89 |
+
0.999
|
| 90 |
+
],
|
| 91 |
+
"optimizer_eps": 1e-08,
|
| 92 |
+
"optimizer_weight_decay": 1e-06,
|
| 93 |
+
"scheduler_name": "cosine",
|
| 94 |
+
"scheduler_warmup_steps": 500
|
| 95 |
+
}
|
demo.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6b1eb61623923f08dad4f976844ac04e7777fba5454bd50d8a693eeaebb2f82
|
| 3 |
+
size 23091369
|
policy_postprocessor.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "policy_postprocessor",
|
| 3 |
+
"steps": [
|
| 4 |
+
{
|
| 5 |
+
"registry_name": "unnormalizer_processor",
|
| 6 |
+
"config": {
|
| 7 |
+
"eps": 1e-08,
|
| 8 |
+
"features": {
|
| 9 |
+
"action": {
|
| 10 |
+
"type": "ACTION",
|
| 11 |
+
"shape": [
|
| 12 |
+
6
|
| 13 |
+
]
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
"norm_map": {
|
| 17 |
+
"VISUAL": "MEAN_STD",
|
| 18 |
+
"STATE": "MIN_MAX",
|
| 19 |
+
"ACTION": "MIN_MAX"
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
"state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"registry_name": "device_processor",
|
| 26 |
+
"config": {
|
| 27 |
+
"device": "cpu",
|
| 28 |
+
"float_dtype": null
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
policy_postprocessor_step_0_unnormalizer_processor.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b9214914398156f17ddf08a5082c20b24efb70a7ba7677e8bc3d3ff68a722db
|
| 3 |
+
size 3756
|
policy_preprocessor.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "policy_preprocessor",
|
| 3 |
+
"steps": [
|
| 4 |
+
{
|
| 5 |
+
"registry_name": "rename_observations_processor",
|
| 6 |
+
"config": {
|
| 7 |
+
"rename_map": {}
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"registry_name": "to_batch_processor",
|
| 12 |
+
"config": {}
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"registry_name": "device_processor",
|
| 16 |
+
"config": {
|
| 17 |
+
"device": "cuda",
|
| 18 |
+
"float_dtype": null
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"registry_name": "normalizer_processor",
|
| 23 |
+
"config": {
|
| 24 |
+
"eps": 1e-08,
|
| 25 |
+
"features": {
|
| 26 |
+
"observation.state": {
|
| 27 |
+
"type": "STATE",
|
| 28 |
+
"shape": [
|
| 29 |
+
6
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"observation.images.front": {
|
| 33 |
+
"type": "VISUAL",
|
| 34 |
+
"shape": [
|
| 35 |
+
3,
|
| 36 |
+
480,
|
| 37 |
+
640
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"observation.images.wrist": {
|
| 41 |
+
"type": "VISUAL",
|
| 42 |
+
"shape": [
|
| 43 |
+
3,
|
| 44 |
+
480,
|
| 45 |
+
640
|
| 46 |
+
]
|
| 47 |
+
},
|
| 48 |
+
"action": {
|
| 49 |
+
"type": "ACTION",
|
| 50 |
+
"shape": [
|
| 51 |
+
6
|
| 52 |
+
]
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
"norm_map": {
|
| 56 |
+
"VISUAL": "MEAN_STD",
|
| 57 |
+
"STATE": "MIN_MAX",
|
| 58 |
+
"ACTION": "MIN_MAX"
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
}
|
policy_preprocessor_step_3_normalizer_processor.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b9214914398156f17ddf08a5082c20b24efb70a7ba7677e8bc3d3ff68a722db
|
| 3 |
+
size 3756
|
train_config.json
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": {
|
| 3 |
+
"repo_id": "LightwheelAI/leisaac-pick-orange",
|
| 4 |
+
"root": "/root/autodl-tmp/datasets/leisaac-pick-orange",
|
| 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 |
+
"affine": {
|
| 62 |
+
"weight": 1.0,
|
| 63 |
+
"type": "RandomAffine",
|
| 64 |
+
"kwargs": {
|
| 65 |
+
"degrees": [
|
| 66 |
+
-5.0,
|
| 67 |
+
5.0
|
| 68 |
+
],
|
| 69 |
+
"translate": [
|
| 70 |
+
0.05,
|
| 71 |
+
0.05
|
| 72 |
+
]
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
},
|
| 77 |
+
"revision": null,
|
| 78 |
+
"use_imagenet_stats": true,
|
| 79 |
+
"video_backend": "pyav",
|
| 80 |
+
"streaming": false
|
| 81 |
+
},
|
| 82 |
+
"env": null,
|
| 83 |
+
"policy": {
|
| 84 |
+
"type": "flowdp",
|
| 85 |
+
"n_obs_steps": 2,
|
| 86 |
+
"input_features": {
|
| 87 |
+
"observation.state": {
|
| 88 |
+
"type": "STATE",
|
| 89 |
+
"shape": [
|
| 90 |
+
6
|
| 91 |
+
]
|
| 92 |
+
},
|
| 93 |
+
"observation.images.front": {
|
| 94 |
+
"type": "VISUAL",
|
| 95 |
+
"shape": [
|
| 96 |
+
3,
|
| 97 |
+
480,
|
| 98 |
+
640
|
| 99 |
+
]
|
| 100 |
+
},
|
| 101 |
+
"observation.images.wrist": {
|
| 102 |
+
"type": "VISUAL",
|
| 103 |
+
"shape": [
|
| 104 |
+
3,
|
| 105 |
+
480,
|
| 106 |
+
640
|
| 107 |
+
]
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
"output_features": {
|
| 111 |
+
"action": {
|
| 112 |
+
"type": "ACTION",
|
| 113 |
+
"shape": [
|
| 114 |
+
6
|
| 115 |
+
]
|
| 116 |
+
}
|
| 117 |
+
},
|
| 118 |
+
"device": "cuda",
|
| 119 |
+
"use_amp": false,
|
| 120 |
+
"use_peft": false,
|
| 121 |
+
"push_to_hub": false,
|
| 122 |
+
"repo_id": null,
|
| 123 |
+
"private": null,
|
| 124 |
+
"tags": null,
|
| 125 |
+
"license": null,
|
| 126 |
+
"pretrained_path": null,
|
| 127 |
+
"horizon": 16,
|
| 128 |
+
"n_action_steps": 8,
|
| 129 |
+
"normalization_mapping": {
|
| 130 |
+
"VISUAL": "MEAN_STD",
|
| 131 |
+
"STATE": "MIN_MAX",
|
| 132 |
+
"ACTION": "MIN_MAX"
|
| 133 |
+
},
|
| 134 |
+
"drop_n_last_frames": 7,
|
| 135 |
+
"vision_backbone": "resnet18",
|
| 136 |
+
"resize_shape": [
|
| 137 |
+
480,
|
| 138 |
+
640
|
| 139 |
+
],
|
| 140 |
+
"crop_ratio": 1.0,
|
| 141 |
+
"crop_shape": null,
|
| 142 |
+
"crop_is_random": true,
|
| 143 |
+
"pretrained_backbone_weights": null,
|
| 144 |
+
"use_group_norm": true,
|
| 145 |
+
"spatial_softmax_num_keypoints": 32,
|
| 146 |
+
"use_separate_rgb_encoder_per_camera": false,
|
| 147 |
+
"down_dims": [
|
| 148 |
+
512,
|
| 149 |
+
1024,
|
| 150 |
+
2048
|
| 151 |
+
],
|
| 152 |
+
"kernel_size": 5,
|
| 153 |
+
"n_groups": 8,
|
| 154 |
+
"diffusion_step_embed_dim": 128,
|
| 155 |
+
"use_film_scale_modulation": true,
|
| 156 |
+
"noise_scheduler_type": "DDPM",
|
| 157 |
+
"num_train_timesteps": 100,
|
| 158 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 159 |
+
"beta_start": 0.0001,
|
| 160 |
+
"beta_end": 0.02,
|
| 161 |
+
"prediction_type": "epsilon",
|
| 162 |
+
"clip_sample": true,
|
| 163 |
+
"clip_sample_range": 1.0,
|
| 164 |
+
"num_inference_steps": 10,
|
| 165 |
+
"compile_model": false,
|
| 166 |
+
"compile_mode": "reduce-overhead",
|
| 167 |
+
"do_mask_loss_for_padding": false,
|
| 168 |
+
"optimizer_lr": 0.0001,
|
| 169 |
+
"optimizer_betas": [
|
| 170 |
+
0.95,
|
| 171 |
+
0.999
|
| 172 |
+
],
|
| 173 |
+
"optimizer_eps": 1e-08,
|
| 174 |
+
"optimizer_weight_decay": 1e-06,
|
| 175 |
+
"scheduler_name": "cosine",
|
| 176 |
+
"scheduler_warmup_steps": 500
|
| 177 |
+
},
|
| 178 |
+
"output_dir": "/root/autodl-tmp/outputs/flowdp-hires-pickorange",
|
| 179 |
+
"job_name": "flowdp",
|
| 180 |
+
"resume": false,
|
| 181 |
+
"seed": 1000,
|
| 182 |
+
"num_workers": 4,
|
| 183 |
+
"batch_size": 16,
|
| 184 |
+
"steps": 14000,
|
| 185 |
+
"eval_freq": 20000,
|
| 186 |
+
"log_freq": 200,
|
| 187 |
+
"tolerance_s": 0.0001,
|
| 188 |
+
"save_checkpoint": true,
|
| 189 |
+
"save_freq": 1400,
|
| 190 |
+
"use_policy_training_preset": true,
|
| 191 |
+
"optimizer": {
|
| 192 |
+
"type": "adam",
|
| 193 |
+
"lr": 0.0001,
|
| 194 |
+
"weight_decay": 1e-06,
|
| 195 |
+
"grad_clip_norm": 10.0,
|
| 196 |
+
"betas": [
|
| 197 |
+
0.95,
|
| 198 |
+
0.999
|
| 199 |
+
],
|
| 200 |
+
"eps": 1e-08
|
| 201 |
+
},
|
| 202 |
+
"scheduler": {
|
| 203 |
+
"type": "diffuser",
|
| 204 |
+
"num_warmup_steps": 500,
|
| 205 |
+
"name": "cosine"
|
| 206 |
+
},
|
| 207 |
+
"eval": {
|
| 208 |
+
"n_episodes": 50,
|
| 209 |
+
"batch_size": 50,
|
| 210 |
+
"use_async_envs": false
|
| 211 |
+
},
|
| 212 |
+
"wandb": {
|
| 213 |
+
"enable": false,
|
| 214 |
+
"disable_artifact": false,
|
| 215 |
+
"project": "lerobot",
|
| 216 |
+
"entity": null,
|
| 217 |
+
"notes": null,
|
| 218 |
+
"run_id": null,
|
| 219 |
+
"mode": null
|
| 220 |
+
},
|
| 221 |
+
"peft": null,
|
| 222 |
+
"use_rabc": false,
|
| 223 |
+
"rabc_progress_path": null,
|
| 224 |
+
"rabc_kappa": 0.01,
|
| 225 |
+
"rabc_epsilon": 1e-06,
|
| 226 |
+
"rabc_head_mode": "sparse",
|
| 227 |
+
"rename_map": {},
|
| 228 |
+
"checkpoint_path": null
|
| 229 |
+
}
|