DPP 6-point finetune, human keypoints, 100k steps
Browse files- 100000.pt +3 -0
- README.md +84 -0
- train_config.yaml +130 -0
- train_log.csv +0 -0
- train_overrides.yaml +28 -0
100000.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec2ca143c351221e01a0dda370c0ccaf0a2c26789269e761e208ce71160b84b6
|
| 3 |
+
size 338666816
|
README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
tags:
|
| 4 |
+
- robotics
|
| 5 |
+
- manipulation
|
| 6 |
+
- dexterous-manipulation
|
| 7 |
+
- dex-point-policy
|
| 8 |
+
- openarm
|
| 9 |
+
- inspire-rh56f1
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# DPP 6-point — `human` keypoints (100k)
|
| 13 |
+
|
| 14 |
+
Dexterous Point Policy (DPP) finetuned on 80 anyh2r pick-and-place episodes, using
|
| 15 |
+
**HaWoR human** as the source of the 6 hand keypoints.
|
| 16 |
+
|
| 17 |
+
> One of three models that differ **only** in how the 6 keypoints
|
| 18 |
+
> (wrist + 5 fingertips) were derived. Everything else — object point clouds,
|
| 19 |
+
> per-finger contact, camera pose, language, validity mask, episode set,
|
| 20 |
+
> hyper-parameters, pretrained init — is byte-identical across the three.
|
| 21 |
+
|
| 22 |
+
| repo | keypoint source |
|
| 23 |
+
|---|---|
|
| 24 |
+
| [`dpp-6pt-anyh2r-fk-100k`](https://huggingface.co/RyanL22/dpp-6pt-anyh2r-fk-100k) | IDM wristIK robot state → MuJoCo FK **(ours)** |
|
| 25 |
+
| [`dpp-6pt-anyh2r-human-100k`](https://huggingface.co/RyanL22/dpp-6pt-anyh2r-human-100k) | HaWoR human hand (baseline) |
|
| 26 |
+
| [`dpp-6pt-anyh2r-retgt-100k`](https://huggingface.co/RyanL22/dpp-6pt-anyh2r-retgt-100k) | dex-retargeting → Inspire RH56F1 (baseline) |
|
| 27 |
+
|
| 28 |
+
**This model:** HaWoR human hand keypoints, used as-is (baseline)
|
| 29 |
+
|
| 30 |
+
## Files
|
| 31 |
+
|
| 32 |
+
| file | what |
|
| 33 |
+
|---|---|
|
| 34 |
+
| `100000.pt` | final snapshot (323 MB) — `state_dict`s + optimizer + normalisation stats |
|
| 35 |
+
| `train_config.yaml` / `train_overrides.yaml` | the exact resolved Hydra config of the run |
|
| 36 |
+
| `train_log.csv` | per-100-step training log |
|
| 37 |
+
|
| 38 |
+
## Training
|
| 39 |
+
|
| 40 |
+
Code: [`beomjun02/dex-point-policy`](https://github.com/beomjun02/dex-point-policy) @ `e972ba5`
|
| 41 |
+
(private). Init: `vitra_6points_final/snapshot/100000.pt` (VITRA video pretrain, 6points,
|
| 42 |
+
no contact head — the head is added at finetune and loaded with `strict=False`).
|
| 43 |
+
|
| 44 |
+
```
|
| 45 |
+
agent=dpp suite.action_mode=6points suite.history_len=1 num_queries=16
|
| 46 |
+
dataloader.bc_dataset.normalize=false # raw metres, matches the pretrain run
|
| 47 |
+
dataloader.bc_dataset.hand=right
|
| 48 |
+
dataloader.bc_dataset.max_num_objects=4
|
| 49 |
+
teacher_forcing=true
|
| 50 |
+
use_contact_head=true contact_loss_coef=1.0 contact_detach=true
|
| 51 |
+
uniform_contact_pos_weight=true # scalar pos_weight 4.38
|
| 52 |
+
geom_drop_p=0 contact_drop_p=0 robot_noise_std=0
|
| 53 |
+
batch_size=64 lr=1e-4 steps=100000 finetune=true
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
1× GPU, ~55 min. Final training loss (mean over steps 95k–100k): **0.1083**.
|
| 57 |
+
|
| 58 |
+
> Training losses are **not** comparable across the three models — each fits a
|
| 59 |
+
> different target sequence. Use rollout success, not this number.
|
| 60 |
+
|
| 61 |
+
## Data
|
| 62 |
+
|
| 63 |
+
80 episodes (ball 22 / bottle 20 / box 22 / doll 16), 22,454 frames @ 20 fps, 95.6% kept.
|
| 64 |
+
Built from `dpp_ego3d_v1/openarm_inspire` (pt512 pack) for objects / contact / camera /
|
| 65 |
+
language, intersected with the anyh2r wristIK synthetic set
|
| 66 |
+
(`idm_v4form_rh56f1_vla_stereo-depth-wristIK_20260916`) so all three variants cover
|
| 67 |
+
exactly the same clips.
|
| 68 |
+
|
| 69 |
+
- Frame: `ego_right_optical_frame` (x right, y down, z forward), metres, static camera.
|
| 70 |
+
- Keypoints: MANO-21 indices `[0, 4, 8, 12, 16, 20]` = wrist, thumb, index, middle, ring, little tip.
|
| 71 |
+
- Objects: 128 points per slot, 2 slots (task object + white container).
|
| 72 |
+
- Contact: per-finger binary, thresholded at 0.3 on the HaWoR-tactile probability.
|
| 73 |
+
|
| 74 |
+
Verification of the FK path: our forward kinematics reproduces ego3d's own
|
| 75 |
+
`robot/*/hands21.npz` to **0.00 mm** (dohyeon calibrated ego extrinsic, rig in MJCF body
|
| 76 |
+
`pitch_motor_rotor_2`). Mean disagreement between the human and FK keypoints on the same
|
| 77 |
+
frames: wrist 36 mm, thumb 42, index 43, middle 46, ring 47, little 41 — note the wrist
|
| 78 |
+
points are different physical landmarks (MANO wrist joint vs RH56F1 palm site), so a
|
| 79 |
+
steady offset there is geometry, not error.
|
| 80 |
+
|
| 81 |
+
## License
|
| 82 |
+
|
| 83 |
+
Inherits the `dex-point-policy` / NVIDIA Source Code License terms of the upstream
|
| 84 |
+
`point_bridge` project. Research use.
|
train_config.yaml
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root_dir: ${oc.env:DPP_ROOT,${hydra:runtime.cwd}}
|
| 2 |
+
data_dir: ${oc.env:DPP_DATA_DIR,./data}
|
| 3 |
+
seed: 42
|
| 4 |
+
device: cuda
|
| 5 |
+
save_video: false
|
| 6 |
+
use_tb: false
|
| 7 |
+
batch_size: 64
|
| 8 |
+
use_wandb: false
|
| 9 |
+
wandb_project: dex-point-policy
|
| 10 |
+
wandb_entity: beomjun-alinlab
|
| 11 |
+
num_demos_per_task: 1000000
|
| 12 |
+
use_ego_state: true
|
| 13 |
+
use_language: true
|
| 14 |
+
use_world_model: false
|
| 15 |
+
world_model_loss_coef: 0.1
|
| 16 |
+
world_model_detach: false
|
| 17 |
+
teacher_forcing: true
|
| 18 |
+
use_contact_head: true
|
| 19 |
+
contact_loss_coef: 1.0
|
| 20 |
+
contact_detach: true
|
| 21 |
+
use_contact_ar: true
|
| 22 |
+
geom_drop_p: 0.0
|
| 23 |
+
contact_drop_p: 0.0
|
| 24 |
+
robot_noise_std: 0.0
|
| 25 |
+
eval: false
|
| 26 |
+
finetune: true
|
| 27 |
+
task_names: null
|
| 28 |
+
experiment: dpp_ft_human
|
| 29 |
+
experiment_label: deterministic
|
| 30 |
+
task_filter: null
|
| 31 |
+
action_chunking: true
|
| 32 |
+
num_queries: 16
|
| 33 |
+
temporal_agg_strategy: exponential_average
|
| 34 |
+
expert_dataset: ${dataloader.bc_dataset}
|
| 35 |
+
load_bc: true
|
| 36 |
+
bc_weight: /sjw_alinlab/home/seungyong/data/dpp6/dpp_pt_100k.pt
|
| 37 |
+
agent:
|
| 38 |
+
_target_: agent.dpp.BCAgent
|
| 39 |
+
obs_shape: ???
|
| 40 |
+
action_shape: ???
|
| 41 |
+
device: ${device}
|
| 42 |
+
lr: 0.0001
|
| 43 |
+
hidden_dim: ${suite.hidden_dim}
|
| 44 |
+
stddev_schedule: 0.1
|
| 45 |
+
use_tb: ${use_tb}
|
| 46 |
+
use_language: ${use_language}
|
| 47 |
+
use_ego_state: ${use_ego_state}
|
| 48 |
+
history_len: ${suite.history_len}
|
| 49 |
+
eval_history_len: ${suite.eval_history_len}
|
| 50 |
+
action_chunking: ${action_chunking}
|
| 51 |
+
num_queries: ${num_queries}
|
| 52 |
+
temporal_agg_strategy: ${temporal_agg_strategy}
|
| 53 |
+
max_episode_len: ${suite.task_make_fn.max_episode_len}
|
| 54 |
+
film: true
|
| 55 |
+
action_mode: ${suite.action_mode}
|
| 56 |
+
robot_points_key: ${suite.robot_points_key}
|
| 57 |
+
object_points_key: ${suite.object_points_key}
|
| 58 |
+
num_points_per_obj: ${suite.num_points_per_obj}
|
| 59 |
+
teacher_forcing: ${teacher_forcing}
|
| 60 |
+
use_world_model: ${use_world_model}
|
| 61 |
+
world_model_loss_coef: ${world_model_loss_coef}
|
| 62 |
+
world_model_detach: ${world_model_detach}
|
| 63 |
+
use_contact_head: ${use_contact_head}
|
| 64 |
+
contact_loss_coef: ${contact_loss_coef}
|
| 65 |
+
contact_detach: ${contact_detach}
|
| 66 |
+
use_contact_ar: ${use_contact_ar}
|
| 67 |
+
geom_drop_p: ${geom_drop_p}
|
| 68 |
+
contact_drop_p: ${contact_drop_p}
|
| 69 |
+
robot_noise_std: ${robot_noise_std}
|
| 70 |
+
suite:
|
| 71 |
+
suite: vitra
|
| 72 |
+
name: vitra
|
| 73 |
+
action_mode: 6points
|
| 74 |
+
num_robot_points: 21
|
| 75 |
+
num_points_per_obj: 128
|
| 76 |
+
robot_points_key: robot_tracks
|
| 77 |
+
object_points_key: object_tracks
|
| 78 |
+
hidden_dim: 512
|
| 79 |
+
action_repeat: 1
|
| 80 |
+
num_train_steps: 100000
|
| 81 |
+
log_every_steps: 100
|
| 82 |
+
save_every_steps: 5000
|
| 83 |
+
history_len: 1
|
| 84 |
+
eval_every_steps: 200000
|
| 85 |
+
num_eval_episodes: 5
|
| 86 |
+
eval_history_len: 5
|
| 87 |
+
save_snapshot: true
|
| 88 |
+
task_make_fn:
|
| 89 |
+
_target_: dex_point_policy.suite.vitra.make
|
| 90 |
+
task_names: []
|
| 91 |
+
action_repeat: ${suite.action_repeat}
|
| 92 |
+
seed: ${seed}
|
| 93 |
+
max_episode_len: ???
|
| 94 |
+
max_state_dim: ???
|
| 95 |
+
max_num_objects: 4
|
| 96 |
+
eval: ${eval}
|
| 97 |
+
num_robot_points: ${suite.num_robot_points}
|
| 98 |
+
num_points_per_obj: ${suite.num_points_per_obj}
|
| 99 |
+
robot_points_key: ${suite.robot_points_key}
|
| 100 |
+
object_points_key: ${suite.object_points_key}
|
| 101 |
+
action_mode: ${suite.action_mode}
|
| 102 |
+
temporal_agg_strategy: ${temporal_agg_strategy}
|
| 103 |
+
dataloader:
|
| 104 |
+
bc_dataset:
|
| 105 |
+
_target_: dex_point_policy.read_data.vitra.BCDataset
|
| 106 |
+
path: ${data_dir}
|
| 107 |
+
suffix: null
|
| 108 |
+
task_names: ${task_names}
|
| 109 |
+
num_demos_per_task: ${num_demos_per_task}
|
| 110 |
+
history_len: ${suite.history_len}
|
| 111 |
+
action_chunking: ${action_chunking}
|
| 112 |
+
num_queries: ${num_queries}
|
| 113 |
+
num_robot_points: ${suite.num_robot_points}
|
| 114 |
+
num_points_per_obj: ${suite.num_points_per_obj}
|
| 115 |
+
robot_points_key: ${suite.robot_points_key}
|
| 116 |
+
object_points_key: ${suite.object_points_key}
|
| 117 |
+
act_subsample: 1
|
| 118 |
+
obs_subsample: 1
|
| 119 |
+
action_mode: ${suite.action_mode}
|
| 120 |
+
task_indices: null
|
| 121 |
+
noise_object_points: false
|
| 122 |
+
noise_std: 0.01
|
| 123 |
+
hdf5_path: /sjw_alinlab/home/seungyong/data/dpp6/ft_human.h5
|
| 124 |
+
hand: right
|
| 125 |
+
normalize: false
|
| 126 |
+
task_filter: ${task_filter}
|
| 127 |
+
max_num_objects: 4
|
| 128 |
+
compute_contact_pos_weight: true
|
| 129 |
+
uniform_contact_pos_weight: true
|
| 130 |
+
use_world_model: ${use_world_model}
|
train_log.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train_overrides.yaml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- experiment=dpp_ft_human
|
| 2 |
+
- agent=dpp
|
| 3 |
+
- use_wandb=false
|
| 4 |
+
- use_tb=false
|
| 5 |
+
- suite.action_mode=6points
|
| 6 |
+
- suite.history_len=1
|
| 7 |
+
- dataloader.bc_dataset.normalize=false
|
| 8 |
+
- dataloader.bc_dataset.hdf5_path=/sjw_alinlab/home/seungyong/data/dpp6/ft_human.h5
|
| 9 |
+
- dataloader.bc_dataset.hand=right
|
| 10 |
+
- dataloader.bc_dataset.max_num_objects=4
|
| 11 |
+
- dataloader.bc_dataset.act_subsample=1
|
| 12 |
+
- dataloader.bc_dataset.noise_object_points=false
|
| 13 |
+
- dataloader.bc_dataset.uniform_contact_pos_weight=true
|
| 14 |
+
- teacher_forcing=true
|
| 15 |
+
- use_contact_head=true
|
| 16 |
+
- contact_loss_coef=1.0
|
| 17 |
+
- contact_detach=true
|
| 18 |
+
- geom_drop_p=0.0
|
| 19 |
+
- contact_drop_p=0.0
|
| 20 |
+
- robot_noise_std=0.0
|
| 21 |
+
- num_queries=16
|
| 22 |
+
- batch_size=64
|
| 23 |
+
- agent.lr=1e-4
|
| 24 |
+
- suite.num_train_steps=100000
|
| 25 |
+
- suite.save_every_steps=5000
|
| 26 |
+
- load_bc=true
|
| 27 |
+
- bc_weight=/sjw_alinlab/home/seungyong/data/dpp6/dpp_pt_100k.pt
|
| 28 |
+
- finetune=true
|