Datasets:
Initial: 3 tarballs (episodes_g 1.2GB + USDs 489MB + collected 266MB) + RESUME orchestrator + README
Browse files- README.md +241 -0
- episodes_b3_v4_15obj_3yaw_2026-05-25.tar.gz +3 -0
- episodes_g.tar.gz +3 -0
- obj_usd_cad_ycb.tar.gz +3 -0
- v4_chunked_with_retry.sh +106 -0
- v4_full15_queue_resume.sh +126 -0
- v4_full15_results_2026-05-25.txt +21 -0
README.md
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: baseline_3 v4 — Sim Collection Assets (RESUME on A6000)
|
| 6 |
+
tags:
|
| 7 |
+
- robotics
|
| 8 |
+
- manipulation
|
| 9 |
+
- grasping
|
| 10 |
+
- diffusion-policy
|
| 11 |
+
- franka
|
| 12 |
+
- dexycb
|
| 13 |
+
- collection-assets
|
| 14 |
+
size_categories:
|
| 15 |
+
- 1B<n<10B
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# baseline_3 v4 — sim collection RESUME package
|
| 19 |
+
|
| 20 |
+
Everything needed for a partner machine to **resume** the baseline_3 v4 sim
|
| 21 |
+
collection that ran on a dev box (RTX 5090) until the orchestrator was killed
|
| 22 |
+
to free GPU. Resume-aware orchestrator detects what's already done and only
|
| 23 |
+
collects the remaining objects.
|
| 24 |
+
|
| 25 |
+
**Source repo (code lives here, NOT in this dataset)**:
|
| 26 |
+
[`stzabl-png/UCB_Project @ gate3-curobo-ik`](https://github.com/stzabl-png/UCB_Project/tree/gate3-curobo-ik)
|
| 27 |
+
— specifically `sim/run_grasp_sim_baseline3_v4.py` and
|
| 28 |
+
`scripts/baseline_3_v4/*.sh`. Both shell scripts in this dataset are convenience
|
| 29 |
+
copies of the repo versions — the canonical ones live in the repo.
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## What's in this package
|
| 34 |
+
|
| 35 |
+
| file | size | purpose |
|
| 36 |
+
|------|------|---------|
|
| 37 |
+
| `episodes_g.tar.gz` | 1.2 GB | 900 retargeted DexYCB hdf5 (collector INPUT). Includes ycb_dex_01–20 minus the no-data ones; specifically the **newly retargeted dex_11 (pitcher) + dex_14 (mug)** missing from previous runs. |
|
| 38 |
+
| `obj_usd_cad_ycb.tar.gz` | 489 MB | YCB CAD USDs (17 files, Z-up tagged) + textures. Includes the **new dex_11/14/19 USDs** generated this round. |
|
| 39 |
+
| `episodes_b3_v4_15obj_3yaw_2026-05-25.tar.gz` | 266 MB | Already-collected sim hdf5 for 6 objects (tuna 06, tomato 04, pudding 07, gelatin 08, marker 18, potted_meat 09). |
|
| 40 |
+
| `v4_full15_results_2026-05-25.txt` | 1.5 KB | Results log with 6 DONE_RETRY entries → orchestrator uses this to skip done objects. |
|
| 41 |
+
| `v4_full15_queue_resume.sh` | 4.6 KB | RESUME-aware orchestrator (2-parallel). Copy of repo `scripts/baseline_3_v4/`. |
|
| 42 |
+
| `v4_chunked_with_retry.sh` | 4.6 KB | Per-object chunk-5+retry wrapper. Copy of repo `scripts/baseline_3_v4/`. |
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Before you start — what to install
|
| 47 |
+
|
| 48 |
+
### 1. Conda env: `env_isaaclab` (heavy)
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
conda create -n env_isaaclab python=3.11 -y
|
| 52 |
+
conda activate env_isaaclab
|
| 53 |
+
|
| 54 |
+
# 1.1 IsaacSim 5.1 (NOT 4.x — the v4 collector uses 5.1 APIs)
|
| 55 |
+
pip install --extra-index-url=https://pypi.nvidia.com isaacsim==5.1.0
|
| 56 |
+
# Also accept the EULA when prompted on first run.
|
| 57 |
+
|
| 58 |
+
# 1.2 cuRobo 0.8 (NOT 0.7 — the planner uses MotionPlanner / SceneCfg.create API)
|
| 59 |
+
pip install curobo==0.8.0
|
| 60 |
+
|
| 61 |
+
# 1.3 Other deps used by the collector + retry wrapper
|
| 62 |
+
pip install h5py scipy 'numpy<2' termcolor pyyaml requests usd-core
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
Verify the install:
|
| 66 |
+
```bash
|
| 67 |
+
python -c "from isaacsim import SimulationApp; print('IsaacSim OK')"
|
| 68 |
+
python -c "import curobo; print('cuRobo OK')"
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### 2. Repo (gate3-curobo-ik branch)
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
git clone -b gate3-curobo-ik git@github.com:stzabl-png/UCB_Project.git
|
| 75 |
+
cd UCB_Project
|
| 76 |
+
# DP3 is already vendored under third_party/3D-Diffusion-Policy/3D-Diffusion-Policy
|
| 77 |
+
# but you do NOT need to install it for sim collection (only for training).
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
### 3. GPU
|
| 81 |
+
|
| 82 |
+
- Tested on A6000 48 GB and RTX 5090 32 GB.
|
| 83 |
+
- 2-parallel collection uses ~10 GB sustained, ~18 GB peak (cuRobo subprocess spikes).
|
| 84 |
+
- Single-parallel (`OBJS` loop run sequentially) if VRAM is tight.
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
## Download + extract (run from `UCB_Project/`)
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
pip install huggingface_hub
|
| 92 |
+
mkdir -p Baseline1/data output
|
| 93 |
+
|
| 94 |
+
# Pull tarballs
|
| 95 |
+
huggingface-cli download UCBProject/baseline_3_v4_collection_assets \
|
| 96 |
+
--repo-type dataset \
|
| 97 |
+
--local-dir /tmp/v4_pkg
|
| 98 |
+
|
| 99 |
+
# Extract into matching layout (uses --strip-components=0 so paths preserved as-is)
|
| 100 |
+
tar xzf /tmp/v4_pkg/episodes_g.tar.gz # → Baseline1/data/episodes_g/
|
| 101 |
+
tar xzf /tmp/v4_pkg/obj_usd_cad_ycb.tar.gz # → output/obj_usd_cad/ycb/
|
| 102 |
+
tar xzf /tmp/v4_pkg/episodes_b3_v4_15obj_3yaw_2026-05-25.tar.gz # → Baseline1/data/episodes_b3_v4_15obj_3yaw_2026-05-25/
|
| 103 |
+
|
| 104 |
+
# Place the results log + scripts where orchestrator expects
|
| 105 |
+
cp /tmp/v4_pkg/v4_full15_results_2026-05-25.txt /tmp/
|
| 106 |
+
# Optional — only if your repo doesn't already have these
|
| 107 |
+
# (gate3-curobo-ik DOES have them under scripts/baseline_3_v4/, prefer those):
|
| 108 |
+
# cp /tmp/v4_pkg/v4_*.sh /tmp/
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
Verify layout:
|
| 112 |
+
```bash
|
| 113 |
+
ls Baseline1/data/episodes_g/*.hdf5 | wc -l # expect 900
|
| 114 |
+
ls output/obj_usd_cad/ycb/*.usd | wc -l # expect ~17
|
| 115 |
+
ls Baseline1/data/episodes_b3_v4_15obj_3yaw_2026-05-25/*.hdf5 | wc -l # expect ~153
|
| 116 |
+
grep DONE_RETRY /tmp/v4_full15_results_2026-05-25.txt | wc -l # expect 6
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
|
| 121 |
+
## Run the resume
|
| 122 |
+
|
| 123 |
+
**This is the only command you need:**
|
| 124 |
+
|
| 125 |
+
```bash
|
| 126 |
+
cd UCB_Project # repo root
|
| 127 |
+
|
| 128 |
+
# Override the env vars to match YOUR layout (replace paths with yours)
|
| 129 |
+
PROJ=$HOME/UCB_Project \
|
| 130 |
+
PY=$HOME/miniconda3/envs/env_isaaclab/bin/python \
|
| 131 |
+
OUT=Baseline1/data/episodes_b3_v4_15obj_3yaw_2026-05-25 \
|
| 132 |
+
RESULTS=/tmp/v4_full15_results_2026-05-25.txt \
|
| 133 |
+
PAR=2 \
|
| 134 |
+
bash scripts/baseline_3_v4/v4_full15_queue_resume.sh
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
The orchestrator will:
|
| 138 |
+
1. Read `RESULTS` and find 6 `DONE_RETRY` entries (06, 04, 07, 08, 18, 09) → skip them
|
| 139 |
+
2. Launch the remaining 9 objects (12, 05, 03, 15, 02, 11, 14, 20, *and 19 which has 0 src ep and will silently emit nothing*) at PAR parallel
|
| 140 |
+
3. Each object: chunk-5 + auto-retry on PhysX-pollution sanity fail
|
| 141 |
+
4. New `DONE_RETRY` lines append to `RESULTS` as objects finish
|
| 142 |
+
5. Final per-object summary appended at the end
|
| 143 |
+
|
| 144 |
+
### Choosing `PAR` on A6000
|
| 145 |
+
|
| 146 |
+
A6000 has 48 GB VRAM but **half** the CUDA cores of RTX 5090 (where this run
|
| 147 |
+
was validated at PAR=2). cuRobo subprocesses (called per chunk by the
|
| 148 |
+
collector) are compute-bound, not memory-bound; historically PAR=4 caused
|
| 149 |
+
65 % `plan_fail` on RTX 5090 from cuRobo GPU contention. The A6000's fewer
|
| 150 |
+
cores likely makes contention **worse**, not better, even with more VRAM.
|
| 151 |
+
|
| 152 |
+
Recommendation:
|
| 153 |
+
|
| 154 |
+
| `PAR` | Sustained VRAM | Peak VRAM | Wall time (9 obj) | Risk |
|
| 155 |
+
|-------|----------------|-----------|-------------------|------|
|
| 156 |
+
| 1 | ~4 GB | ~7 GB | ~9-12 h | None |
|
| 157 |
+
| **2** | ~8 GB | ~14-18 GB | **~5-7 h** | **Validated, default** |
|
| 158 |
+
| 3 | ~12 GB | ~21-27 GB | ~4-5 h (if no contention drop) | Unknown — VRAM fine, cuRobo contention untested on A6000 |
|
| 159 |
+
| 4 | ~16 GB | ~28-36 GB | ~3-4 h (theoretical) | High — 65 % plan_fail on 5090; expect same or worse |
|
| 160 |
+
|
| 161 |
+
**Start with PAR=2.** After object #1 finishes, look at its `DONE_RETRY` line
|
| 162 |
+
in `RESULTS` and compare `plan_fail` ratio to dev-box reference (35-40 % is
|
| 163 |
+
normal). If plan_fail is comparable, you can bump `PAR=3` for the rest (the
|
| 164 |
+
orchestrator re-reads PAR on each loop iteration, but bumping mid-run requires
|
| 165 |
+
killing + restarting the orchestrator — it'll resume from where it stopped).
|
| 166 |
+
|
| 167 |
+
---
|
| 168 |
+
|
| 169 |
+
## What to watch for — *specific* gotchas verified for this setup
|
| 170 |
+
|
| 171 |
+
These are not theoretical — every one was either a confirmed bug we fixed or an
|
| 172 |
+
explicit non-default the partner needs to know about. Cross-checked against the
|
| 173 |
+
actual code, not just docs.
|
| 174 |
+
|
| 175 |
+
| # | Gotcha | Status / Action |
|
| 176 |
+
|---|--------|-----------------|
|
| 177 |
+
| 1 | **Object mass = 0.05 kg** is hardcoded in `sim/run_grasp_sim_baseline3_v4.py` L962. Real per-class mass (0.3–0.6 kg) caused PhysX corruption + DP3 eval SR = 0 % when we tried it earlier. **Do not override.** | ✅ Already baked in, no action |
|
| 178 |
+
| 2 | **`--yaw-aug` is True by default**. Producing orig + yaw90 + yaw180 + yaw270 = 4 attempts per source ep. The retry wrapper assumes this (`ATTEMPTS_PER_EP=4`). If you change one without the other, the case-C retry math (`MARKERS / ATTEMPTS_PER_EP`) breaks. | ✅ Defaults aligned, no action |
|
| 179 |
+
| 3 | **`OUT` env var must match the existing collected dir** (`episodes_b3_v4_15obj_3yaw_2026-05-25`), NOT a fresh date — otherwise resume can't see the 6 done objects' hdf5 and the safety check refuses. | ⚠️ Use the env var shown above |
|
| 180 |
+
| 4 | **`RESULTS` env var must point to the shipped log**. If you let it default to `/tmp/v4_full15_results_<TODAY>.txt`, that file won't exist → orchestrator will treat all 15 objects as "not done" and re-collect the 6. | ⚠️ Use the env var shown above |
|
| 181 |
+
| 5 | **`PROJ` and `PY` env vars** override the hardcoded `/home/accelerator/...` defaults baked into the scripts for the dev box. **Always set these on partner machine.** | ⚠️ Use the env vars shown above |
|
| 182 |
+
| 6 | **`scripts/baseline_3_v4/` lives in repo** (gate3-curobo-ik). The orchestrator launches `bash scripts/baseline_3_v4/v4_chunked_with_retry.sh ...` with a relative path — so it must be run from repo root. `cd UCB_Project` before launching. | ⚠️ Run from repo root |
|
| 183 |
+
| 7 | **PAR=2 default** (overridable via env var). 4-par historically broke on RTX 5090 (65 % plan_fail). On A6000, 3-par is plausibly OK due to extra VRAM, but cuRobo compute contention is the binding constraint and A6000 has 50 % fewer CUDA cores — so 3-par is **untested**, may degrade. See "Choosing PAR on A6000" above. | ⚠️ Default 2; bump to 3 only after watching first object's plan_fail rate |
|
| 184 |
+
| 8 | **dex_19 (large_clamp) has 0 source ep**. DexYCB raw simply doesn't contain large_clamp grasp sessions. The orchestrator will launch ycb_dex_19, find 0 hdf5 in `episodes_g/`, and the collector will silently emit nothing. Not a bug. | ✅ Already documented in script |
|
| 185 |
+
| 9 | **Logs from prior runs in `/tmp/v4_obj_NN_*.out`** would contaminate stats. The orchestrator deletes per-object logs only for objects it's about to (re)launch — so done objects keep their original logs. | ✅ Handled |
|
| 186 |
+
| 10 | **First boot is slow**: each new IsaacSim process takes ~30 sec to load all extensions; you'll see thousands of `Failed to create change watch ... errno=28/No space left on device` errors that are **non-fatal** (inotify watch limit; ignore). | ⚠️ Don't panic |
|
| 187 |
+
|
| 188 |
+
---
|
| 189 |
+
|
| 190 |
+
## Object-by-object expectation (based on dev-box run)
|
| 191 |
+
|
| 192 |
+
The first 6 (already done, will be skipped):
|
| 193 |
+
|
| 194 |
+
| obj | yield (saved) | notes |
|
| 195 |
+
|---|---|---|
|
| 196 |
+
| 06 tuna | 25 ep | clean (0 PhysX warn) |
|
| 197 |
+
| 04 tomato | 29 | normal |
|
| 198 |
+
| 07 pudding | 31 | normal |
|
| 199 |
+
| 08 gelatin | 22 | normal |
|
| 200 |
+
| 09 potted_meat | 36 | normal |
|
| 201 |
+
| 18 marker | 10 | low yield (thin object) |
|
| 202 |
+
|
| 203 |
+
Expect the remaining 9 to behave similarly: ~20-35 ep per object, ~50-60 min each at 2-parallel. Total ~5-7 h for the batch.
|
| 204 |
+
|
| 205 |
+
dex_19 will produce 0 ep (no source data). Don't be alarmed by `0 saved` for it.
|
| 206 |
+
|
| 207 |
+
---
|
| 208 |
+
|
| 209 |
+
## After the run
|
| 210 |
+
|
| 211 |
+
A final summary block appears at the tail of `RESULTS`:
|
| 212 |
+
|
| 213 |
+
```
|
| 214 |
+
=== FINAL PER-OBJ SUMMARY (after resume) ===
|
| 215 |
+
ycb_dex_06: orig=10 yaw=15 total=25
|
| 216 |
+
ycb_dex_04: orig=12 yaw=17 total=29
|
| 217 |
+
...
|
| 218 |
+
TOTAL: NNN trajectories
|
| 219 |
+
```
|
| 220 |
+
|
| 221 |
+
Send that summary back to the dev box, and we'll handle zarr build + DP3
|
| 222 |
+
training. Do **NOT** delete the collected hdf5 dir until then — it's the
|
| 223 |
+
training input.
|
| 224 |
+
|
| 225 |
+
---
|
| 226 |
+
|
| 227 |
+
## Troubleshooting
|
| 228 |
+
|
| 229 |
+
- **`ImportError: ...isaacsim`** → wrong conda env activated. Confirm with `which python` then `python -c "from isaacsim import SimulationApp"`.
|
| 230 |
+
- **GPU OOM during 2-parallel** → drop one object out of `OBJS` list temporarily; or run sequentially by editing the orchestrator's `while [[ $(jobs -rp | wc -l) -ge 2 ]]` line → `-ge 1`.
|
| 231 |
+
- **Every object's `plan_fail` count is huge (>80 %)** → likely cuRobo install issue. Run a single object first and grep its log for cuRobo errors. The collector falls back to legacy synthesize+IK if cuRobo plan fails, but ideally cuRobo should work.
|
| 232 |
+
- **Orchestrator launches all 15 objects (didn't skip)** → `RESULTS` env var didn't get exported properly. Confirm `echo "$RESULTS"` inside the same shell where you launch.
|
| 233 |
+
- **Resume hdf5 saved=0 for everything** → `OUT` env var wrong or directory empty; safety check should have caught this but if you see this pattern, abort and verify paths.
|
| 234 |
+
|
| 235 |
+
---
|
| 236 |
+
|
| 237 |
+
## License & citation
|
| 238 |
+
|
| 239 |
+
Sim collection assets: CC-BY-4.0.
|
| 240 |
+
DexYCB source data subject to the original DexYCB license.
|
| 241 |
+
YCB object meshes: Yale-CMU-Berkeley YCB Object & Model Set license.
|
episodes_b3_v4_15obj_3yaw_2026-05-25.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cffd0d1102541258b064cbc105bf8c98e2bab2cc74dcc4e7bde0d1fb0727b14e
|
| 3 |
+
size 277981293
|
episodes_g.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c05ff938f1efd6692031b706842ec818b9060b72e493d7efe2f8544074768f68
|
| 3 |
+
size 1285206754
|
obj_usd_cad_ycb.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c64d81851206b3b33c84f335413d8720e49b1873ab9f9cfd4064cea66d00d89
|
| 3 |
+
size 512676522
|
v4_chunked_with_retry.sh
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Per-object chunked-retry wrapper for baseline_3 v4 collector.
|
| 3 |
+
#
|
| 4 |
+
# Each ep with --yaw-aug ON produces 4 attempts (orig + yaw90/180/270),
|
| 5 |
+
# each printing exactly ONE terminal marker ("GRASPED + LIFTED" /
|
| 6 |
+
# "object Z … not lifted" / "plan sequence failed" / "abort ep").
|
| 7 |
+
#
|
| 8 |
+
# Handles 3 chunk-end cases:
|
| 9 |
+
# A. chunk fully complete → no retry
|
| 10 |
+
# B. sanity FAIL mid-chunk (EARLY-EXIT printed) → parse "remaining N eps", retry the tail
|
| 11 |
+
# C. process crash with no EARLY-EXIT marker → count terminal markers vs LIMIT, retry diff
|
| 12 |
+
#
|
| 13 |
+
# Usage:
|
| 14 |
+
# bash v4_chunked_with_retry.sh OBJ_CODE CHUNK_SIZE OUT_DIR
|
| 15 |
+
#
|
| 16 |
+
# Env vars (all overridable):
|
| 17 |
+
# PY python interpreter with env_isaaclab (IsaacSim 5.1 + cuRobo 0.8)
|
| 18 |
+
# PROJ UCB_Project root
|
| 19 |
+
# RESULTS_FILE per-run results log (DONE_RETRY etc. appended here)
|
| 20 |
+
# N_TOTAL total source eps in episodes_g/ per object (default 50)
|
| 21 |
+
# NO_YAW_AUG=1 disable yaw aug → 1 attempt/ep instead of 4
|
| 22 |
+
set -u
|
| 23 |
+
|
| 24 |
+
# --- Configurable paths (override via env) -----------------------------------
|
| 25 |
+
PY=${PY:-/home/accelerator/miniforge3/envs/env_isaaclab/bin/python}
|
| 26 |
+
PROJ=${PROJ:-/home/accelerator/UCB_Project}
|
| 27 |
+
RESULTS=${RESULTS_FILE:-/tmp/v4_results.txt}
|
| 28 |
+
N_TOTAL=${N_TOTAL:-50}
|
| 29 |
+
# -----------------------------------------------------------------------------
|
| 30 |
+
|
| 31 |
+
NN=$1; CHUNK=${2:-5}; OUT=${3:-Baseline1/data/episodes_b3_v4_2par_c5}
|
| 32 |
+
cd "$PROJ"; mkdir -p "$OUT"
|
| 33 |
+
|
| 34 |
+
# v4 collector default --yaw-aug=True → 4 attempts/ep (orig + 3 yaws).
|
| 35 |
+
# Pass NO_YAW_AUG=1 to use 1 attempt/ep instead.
|
| 36 |
+
if [[ "${NO_YAW_AUG:-0}" == "1" ]]; then
|
| 37 |
+
ATTEMPTS_PER_EP=1
|
| 38 |
+
YAW_FLAG="--no-yaw-aug"
|
| 39 |
+
else
|
| 40 |
+
ATTEMPTS_PER_EP=4
|
| 41 |
+
YAW_FLAG="" # default ON, no flag needed
|
| 42 |
+
fi
|
| 43 |
+
|
| 44 |
+
run_chunk() {
|
| 45 |
+
local NN=$1 START=$2 LIMIT=$3 TAG=$4
|
| 46 |
+
local LOG=/tmp/v4_obj_${NN}_${TAG}.out
|
| 47 |
+
"$PY" -u sim/run_grasp_sim_baseline3_v4.py \
|
| 48 |
+
--object "ycb_dex_${NN}" --headless \
|
| 49 |
+
--start "$START" --limit "$LIMIT" \
|
| 50 |
+
--out-dir "$OUT" \
|
| 51 |
+
$YAW_FLAG \
|
| 52 |
+
> "$LOG" 2>&1
|
| 53 |
+
|
| 54 |
+
# case B: sanity FAIL → parse "remaining N eps" emitted by collector
|
| 55 |
+
if grep -q "EARLY-EXIT" "$LOG"; then
|
| 56 |
+
REMAINING=$(grep -oE "remaining [0-9]+ eps" "$LOG" | head -1 | grep -oE "[0-9]+")
|
| 57 |
+
if [[ -n "$REMAINING" && "$REMAINING" -gt 0 ]]; then
|
| 58 |
+
echo "$REMAINING"
|
| 59 |
+
return
|
| 60 |
+
fi
|
| 61 |
+
fi
|
| 62 |
+
|
| 63 |
+
# case C: process died without sanity (OOM/crash/kernel-kill).
|
| 64 |
+
# Each (ep, yaw attempt) prints ONE terminal marker. Compute MISSING by:
|
| 65 |
+
# completed_eps = floor(markers / ATTEMPTS_PER_EP)
|
| 66 |
+
# MISSING = LIMIT - completed_eps
|
| 67 |
+
MARKERS=$(grep -cE "GRASPED \+ LIFTED|object Z .* not lifted|plan sequence failed|abort ep" "$LOG")
|
| 68 |
+
COMPLETED_EPS=$(( MARKERS / ATTEMPTS_PER_EP ))
|
| 69 |
+
if [[ "$COMPLETED_EPS" -lt "$LIMIT" ]]; then
|
| 70 |
+
MISSING=$(( LIMIT - COMPLETED_EPS ))
|
| 71 |
+
echo "$MISSING"
|
| 72 |
+
return
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
+
# case A: clean finish
|
| 76 |
+
echo "0"
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
for ((S=0; S<N_TOTAL; S+=CHUNK)); do
|
| 80 |
+
L=$((N_TOTAL-S<CHUNK ? N_TOTAL-S : CHUNK))
|
| 81 |
+
SKIPPED=$(run_chunk "$NN" "$S" "$L" "c${S}")
|
| 82 |
+
if [[ "$SKIPPED" -gt 0 ]]; then
|
| 83 |
+
SKIP_START=$((S + L - SKIPPED))
|
| 84 |
+
SKIP_END=$((S + L))
|
| 85 |
+
for ((R=SKIP_START; R<SKIP_END; R++)); do
|
| 86 |
+
echo " [retry] $NN ep $R (skipped by sanity/crash in chunk $S)" >&2
|
| 87 |
+
run_chunk "$NN" "$R" "1" "r${R}" > /dev/null
|
| 88 |
+
done
|
| 89 |
+
fi
|
| 90 |
+
done
|
| 91 |
+
|
| 92 |
+
# Aggregate stats across ALL logs for this object (chunks + retries) for the
|
| 93 |
+
# DONE_RETRY line. Note: orig + yaw variants both counted by glob below.
|
| 94 |
+
SAVED_ORIG=$(ls "$OUT"/*ycb_dex_${NN}.hdf5 2>/dev/null | wc -l)
|
| 95 |
+
SAVED_YAW=$(ls "$OUT"/*ycb_dex_${NN}_yaw*.hdf5 2>/dev/null | wc -l)
|
| 96 |
+
SAVED=$(( SAVED_ORIG + SAVED_YAW ))
|
| 97 |
+
|
| 98 |
+
G=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -cE "GRASPED \+ LIFTED")
|
| 99 |
+
NL=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -cE "object Z .* not lifted")
|
| 100 |
+
PF=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -c "plan sequence failed")
|
| 101 |
+
SAN=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -c "sanity check FAIL")
|
| 102 |
+
AB=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -c "abort ep")
|
| 103 |
+
SF=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -c "object settle FAIL")
|
| 104 |
+
WARN=$(cat /tmp/v4_obj_${NN}_*.out 2>/dev/null | grep -ciE "Invalid PhysX")
|
| 105 |
+
RTRY=$(ls /tmp/v4_obj_${NN}_r*.out 2>/dev/null | wc -l)
|
| 106 |
+
echo "[$(date +%H:%M:%S)] DONE_RETRY ycb_dex_${NN} saved=${SAVED} (orig=${SAVED_ORIG} yaw=${SAVED_YAW}) GRASPED=${G} not_lifted=${NL} plan_fail=${PF} sanity=${SAN} abort=${AB} settle_fail=${SF} PhysX_warns=${WARN} retries=${RTRY}" >> "$RESULTS"
|
v4_full15_queue_resume.sh
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Resume-capable 2-parallel orchestrator for baseline_3 v4 sim collection.
|
| 3 |
+
# Skips any object already DONE_RETRY in the results log → safe to re-run on
|
| 4 |
+
# a partner machine after rsync-ing partial results.
|
| 5 |
+
#
|
| 6 |
+
# Required env vars (override these for partner setup):
|
| 7 |
+
# PROJ UCB_Project root (default: /home/accelerator/UCB_Project)
|
| 8 |
+
# PY env_isaaclab python (default: /home/accelerator/miniforge3/envs/env_isaaclab/bin/python)
|
| 9 |
+
# OUT output dir for hdf5 (default: Baseline1/data/episodes_b3_v4_15obj_3yaw_<TODAY>)
|
| 10 |
+
# RESULTS results log path (default: /tmp/v4_full15_results_<TODAY>.txt)
|
| 11 |
+
# PAR concurrent IsaacSim procs (default: 2). On A6000 (48 GB) you can
|
| 12 |
+
# try 3 if VRAM headroom is comfortable — but cuRobo subprocess
|
| 13 |
+
# contention historically caused 65 % plan_fail at 4-par on RTX 5090.
|
| 14 |
+
# A6000 has 50 % fewer CUDA cores so cuRobo contention may be WORSE
|
| 15 |
+
# there even with more VRAM. Default 2 is safe; bump to 3 only after
|
| 16 |
+
# watching the first 1-2 objects' plan_fail rate in RESULTS.
|
| 17 |
+
#
|
| 18 |
+
# Resume usage (partner side, after copying our data into matching paths):
|
| 19 |
+
# PROJ=$HOME/UCB_Project \
|
| 20 |
+
# PY=$HOME/miniconda3/envs/env_isaaclab/bin/python \
|
| 21 |
+
# OUT=Baseline1/data/episodes_b3_v4_15obj_3yaw_2026-05-25 \
|
| 22 |
+
# RESULTS=/tmp/v4_full15_results_2026-05-25.txt \
|
| 23 |
+
# PAR=2 \
|
| 24 |
+
# bash scripts/baseline_3_v4/v4_full15_queue_resume.sh
|
| 25 |
+
set -u
|
| 26 |
+
|
| 27 |
+
PROJ=${PROJ:-/home/accelerator/UCB_Project}
|
| 28 |
+
PY=${PY:-/home/accelerator/miniforge3/envs/env_isaaclab/bin/python}
|
| 29 |
+
PAR=${PAR:-2}
|
| 30 |
+
cd "$PROJ"
|
| 31 |
+
|
| 32 |
+
TODAY=$(date +%Y-%m-%d)
|
| 33 |
+
OUT=${OUT:-Baseline1/data/episodes_b3_v4_15obj_3yaw_${TODAY}}
|
| 34 |
+
mkdir -p "$OUT"
|
| 35 |
+
|
| 36 |
+
RESULTS=${RESULTS:-/tmp/v4_full15_results_${TODAY}.txt}
|
| 37 |
+
|
| 38 |
+
# RESUME safety: if OUT already has data, refuse unless RESULTS log is present too
|
| 39 |
+
# (so we know what's already done). Without RESULTS we'd re-collect overwriting hdf5.
|
| 40 |
+
if [[ -n "$(ls -A "$OUT" 2>/dev/null)" && ! -f "$RESULTS" ]]; then
|
| 41 |
+
echo "ERROR: OUT=$OUT is non-empty but RESULTS=$RESULTS missing." >&2
|
| 42 |
+
echo " Either ship the matching RESULTS log alongside OUT, or empty OUT first." >&2
|
| 43 |
+
exit 1
|
| 44 |
+
fi
|
| 45 |
+
|
| 46 |
+
# Touch RESULTS (don't truncate — we need the prior DONE_RETRY entries).
|
| 47 |
+
touch "$RESULTS"
|
| 48 |
+
|
| 49 |
+
# Exported for the per-object wrapper (consumed via $RESULTS_FILE there).
|
| 50 |
+
export RESULTS_FILE="$RESULTS"
|
| 51 |
+
export PY PROJ
|
| 52 |
+
|
| 53 |
+
# Object list — 15 entries; partner can comment out specific ones to skip.
|
| 54 |
+
OBJS=(
|
| 55 |
+
06 # tuna — collected on dev box
|
| 56 |
+
04 # tomato — collected
|
| 57 |
+
07 # pudding — collected
|
| 58 |
+
08 # gelatin — collected
|
| 59 |
+
18 # marker — collected
|
| 60 |
+
09 # potted_meat — collected
|
| 61 |
+
12 # bleach
|
| 62 |
+
05 # mustard
|
| 63 |
+
03 # sugar
|
| 64 |
+
15 # drill
|
| 65 |
+
02 # cracker_box
|
| 66 |
+
11 # pitcher_base
|
| 67 |
+
14 # mug
|
| 68 |
+
19 # large_clamp — NOTE: no DexYCB raw → src ep dir has 0 ep → collector silently emits nothing
|
| 69 |
+
20 # extra_large_clamp
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
GIT_SHA=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
|
| 73 |
+
|
| 74 |
+
# Idempotent MANIFEST refresh.
|
| 75 |
+
cat > "$OUT/MANIFEST.md" <<EOF
|
| 76 |
+
# baseline_3 v4 collection run — last update $(date "+%Y-%m-%d %H:%M:%S %Z")
|
| 77 |
+
|
| 78 |
+
- git: $GIT_SHA
|
| 79 |
+
- collector: sim/run_grasp_sim_baseline3_v4.py
|
| 80 |
+
- wrapper: scripts/baseline_3_v4/v4_chunked_with_retry.sh (chunk-5, retry)
|
| 81 |
+
- orchestrator: scripts/baseline_3_v4/v4_full15_queue_resume.sh (RESUME-aware, 2-parallel)
|
| 82 |
+
- yaw config: 3 yaws/source (orig + 90 + 180 + 270 = 4 attempts/ep)
|
| 83 |
+
- object mass: 0.05 kg (hardcoded in collector, see Baseline1/RETRAIN_V4_FULL12.md history)
|
| 84 |
+
- objects (${#OBJS[@]}): $(IFS=,; echo "${OBJS[*]}")
|
| 85 |
+
- results log: $RESULTS
|
| 86 |
+
|
| 87 |
+
File naming inside OUT:
|
| 88 |
+
<source_ep>__ycb_dex_NN.hdf5 original yaw
|
| 89 |
+
<source_ep>__ycb_dex_NN_yaw{90,180,270}.hdf5 augmented
|
| 90 |
+
EOF
|
| 91 |
+
|
| 92 |
+
echo "[$(date +%H:%M:%S)] RESUME_START 15 obj 2-parallel chunk-5 yaw=all3 OUT=$OUT GIT=$GIT_SHA" >> "$RESULTS"
|
| 93 |
+
|
| 94 |
+
launched=0; skipped=0
|
| 95 |
+
for NN in "${OBJS[@]}"; do
|
| 96 |
+
if grep -q "DONE_RETRY ycb_dex_${NN} " "$RESULTS" 2>/dev/null; then
|
| 97 |
+
echo "[$(date +%H:%M:%S)] SKIP ycb_dex_${NN} (already DONE_RETRY)" >> "$RESULTS"
|
| 98 |
+
skipped=$((skipped + 1))
|
| 99 |
+
continue
|
| 100 |
+
fi
|
| 101 |
+
|
| 102 |
+
# Clean stale per-object logs so wrapper's stats aren't contaminated.
|
| 103 |
+
rm -f /tmp/v4_obj_${NN}_*.out /tmp/v4_orchestrator_${NN}.out
|
| 104 |
+
|
| 105 |
+
# Concurrency cap (default 2; override via PAR=N).
|
| 106 |
+
while [[ $(jobs -rp | wc -l) -ge $PAR ]]; do sleep 10; done
|
| 107 |
+
echo "[$(date +%H:%M:%S)] LAUNCH ycb_dex_${NN}" >> "$RESULTS"
|
| 108 |
+
bash scripts/baseline_3_v4/v4_chunked_with_retry.sh "$NN" 5 "$OUT" \
|
| 109 |
+
> /tmp/v4_orchestrator_${NN}.out 2>&1 &
|
| 110 |
+
launched=$((launched + 1))
|
| 111 |
+
done
|
| 112 |
+
wait
|
| 113 |
+
|
| 114 |
+
echo "[$(date +%H:%M:%S)] QUEUE_RESUME_DONE launched=${launched} skipped=${skipped}" >> "$RESULTS"
|
| 115 |
+
|
| 116 |
+
{
|
| 117 |
+
echo ""
|
| 118 |
+
echo "=== FINAL PER-OBJ SUMMARY (after resume) ==="
|
| 119 |
+
for NN in "${OBJS[@]}"; do
|
| 120 |
+
O=$(ls "$OUT"/*ycb_dex_${NN}.hdf5 2>/dev/null | wc -l)
|
| 121 |
+
Y=$(ls "$OUT"/*ycb_dex_${NN}_yaw*.hdf5 2>/dev/null | wc -l)
|
| 122 |
+
echo " ycb_dex_${NN}: orig=${O} yaw=${Y} total=$((O+Y))"
|
| 123 |
+
done
|
| 124 |
+
T=$(ls "$OUT"/*.hdf5 2>/dev/null | wc -l)
|
| 125 |
+
echo " TOTAL: $T trajectories"
|
| 126 |
+
} >> "$RESULTS"
|
v4_full15_results_2026-05-25.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[15:28:11] QUEUE_START 15 obj 2-parallel chunk-5 yaw=all3 (orig+90+180+270)
|
| 2 |
+
OUT=Baseline1/data/episodes_b3_v4_15obj_3yaw_2026-05-25
|
| 3 |
+
GIT_SHA=9da1164
|
| 4 |
+
[15:28:11] LAUNCH ycb_dex_06
|
| 5 |
+
[15:28:11] LAUNCH ycb_dex_04
|
| 6 |
+
[16:31:40] DONE_RETRY ycb_dex_06 saved=25 (orig=10 yaw=15) GRASPED=25 not_lifted=107 plan_fail=68 sanity=0 abort=0 settle_fail=0 PhysX_warns=0 retries=0
|
| 7 |
+
[16:31:41] LAUNCH ycb_dex_07
|
| 8 |
+
[16:31:48] DONE_RETRY ycb_dex_04 saved=29 (orig=12 yaw=17) GRASPED=29 not_lifted=101 plan_fail=63 sanity=4 abort=4 settle_fail=0 PhysX_warns=880 retries=7
|
| 9 |
+
[16:31:51] LAUNCH ycb_dex_08
|
| 10 |
+
[17:34:57] DONE_RETRY ycb_dex_08 saved=22 (orig=10 yaw=12) GRASPED=22 not_lifted=112 plan_fail=60 sanity=3 abort=2 settle_fail=0 PhysX_warns=2310 retries=2
|
| 11 |
+
[17:35:02] LAUNCH ycb_dex_18
|
| 12 |
+
[17:35:37] DONE_RETRY ycb_dex_07 saved=31 (orig=9 yaw=22) GRASPED=31 not_lifted=98 plan_fail=64 sanity=4 abort=6 settle_fail=0 PhysX_warns=1001 retries=6
|
| 13 |
+
[17:35:42] LAUNCH ycb_dex_09
|
| 14 |
+
[18:29:14] DONE_RETRY ycb_dex_18 saved=10 (orig=3 yaw=7) GRASPED=10 not_lifted=91 plan_fail=95 sanity=2 abort=2 settle_fail=0 PhysX_warns=506 retries=3
|
| 15 |
+
[18:29:23] LAUNCH ycb_dex_12
|
| 16 |
+
[18:38:34] DONE_RETRY ycb_dex_09 saved=36 (orig=12 yaw=24) GRASPED=37 not_lifted=94 plan_fail=62 sanity=5 abort=4 settle_fail=0 PhysX_warns=2783 retries=7
|
| 17 |
+
|
| 18 |
+
[19:33:11] === RESUME after pgrp-SIGHUP at ~18:52 ===
|
| 19 |
+
[19:33:11] RESUME_START 9 obj: 12 05 03 15 02 11 14 19 20
|
| 20 |
+
[19:33:11] LAUNCH ycb_dex_12
|
| 21 |
+
[19:33:11] LAUNCH ycb_dex_05
|