Upload docs/run/ours.md with huggingface_hub
Browse files- docs/run/ours.md +73 -0
docs/run/ours.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle (ours) — Run Commands
|
| 2 |
+
|
| 3 |
+
## What this method does
|
| 4 |
+
Kinematic replay of Tara's retargeter output. Simulator: **MuJoCo** (Python 3.10, no CUDA required). **No training in this container** — Tara's retargeter is trained externally; this consumes the `.npz` output. Paper column = open-loop upper bound on trajectory quality.
|
| 5 |
+
|
| 6 |
+
## Run one eval cell
|
| 7 |
+
|
| 8 |
+
```bash
|
| 9 |
+
./scripts/run.sh ours \
|
| 10 |
+
--hand {allegro|inspire|schunk|xhand} \
|
| 11 |
+
--dataset oakink_v2 \
|
| 12 |
+
--traj <traj-id> \
|
| 13 |
+
--seed 0 \
|
| 14 |
+
--warmstart ours \
|
| 15 |
+
--viz none --dev
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
Example:
|
| 19 |
+
```bash
|
| 20 |
+
./scripts/run.sh ours --hand allegro --dataset oakink_v2 \
|
| 21 |
+
--traj lift_board_bimanual --seed 0 --warmstart ours --viz none --dev
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
## Regenerate standardized video for all 28 Oracle cells
|
| 25 |
+
|
| 26 |
+
**This is the canonical path** — `scripts/render_standardized.py` IS the Oracle rendering pipeline. It takes each cell's `trajectory_kinematic.npz` (or mjwp/ikrollout when higher-fidelity), the Spider-preprocessed scene.xml, and renders through MuJoCo with BENCH_CAMERA.
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
MUJOCO_GL=egl /home/azureuser/ckwolfe/benchmarking/.venv-shared/bin/python3 \
|
| 30 |
+
scripts/render_standardized.py
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
Produces all 28 cells in ~2–3 min total. Output:
|
| 34 |
+
```
|
| 35 |
+
/mnt/external/outputs/videos_std/std_<hand>_oakink_v2_<traj>_bimanual_seed0_default.mp4
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
All at 720×480, 30 fps, h264 crf 20, yuv420p. Frame counts match the kinematic trajectory length (100–1740 frames per cell).
|
| 39 |
+
|
| 40 |
+
Per-cell re-render:
|
| 41 |
+
```bash
|
| 42 |
+
MUJOCO_GL=egl /home/azureuser/ckwolfe/benchmarking/.venv-shared/bin/python3 \
|
| 43 |
+
scripts/render_standardized.py --hand allegro --traj lift_board --force
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## No training (this is an Oracle)
|
| 47 |
+
|
| 48 |
+
`methods/ours/scripts/train_stub.py` is a no-op that records "training lives outside this repo" in a stub MetricsRow. There is no RL. The "method" is Tara's retargeter which runs in a separate codebase; we only consume its .npz output.
|
| 49 |
+
|
| 50 |
+
## Current blocker — Tara's WarmStartTraj payloads
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
# Verify payload state
|
| 54 |
+
/home/azureuser/ckwolfe/benchmarking/.venv-shared/bin/python3 -c "
|
| 55 |
+
import numpy as np
|
| 56 |
+
p = 'data/warmstart/ours/allegro/oakink_v2/lift_board_bimanual.npz'
|
| 57 |
+
z = np.load(p, allow_pickle=True)
|
| 58 |
+
print({k: z[k].shape for k in z.files if hasattr(z[k],'shape')})
|
| 59 |
+
# expect: {'qpos': (0, 1), 'wrist_pose': (0, 7), 'object_pose': (0, 1, 7)}
|
| 60 |
+
# qpos.shape[0]==0 → stub placeholder
|
| 61 |
+
"
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
55/56 cells are currently T=0 placeholder stubs (`__meta__`: "DO NOT TOUCH — placeholder for Tara's retargeter output"). Only `xhand × oakink × lift_board_bimanual` has a real payload.
|
| 65 |
+
|
| 66 |
+
`scripts/render_standardized.py` sidesteps this blocker by reading `trajectory_kinematic.npz` (Spider's IK output, always present) as the fallback. This gives 28 cells of "what the reference trajectory looks like under the shared MuJoCo renderer" — which is the honest Oracle definition.
|
| 67 |
+
|
| 68 |
+
## Status check
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
python3 scripts/sanity_check.py | grep "warmstart/ours"
|
| 72 |
+
# expect: warmstart/ours: 1 real / 55 stubs
|
| 73 |
+
```
|