Datasets:
Add combined-training (DexYCB+OakInk) section pointing to new OakInk dataset; preserve previous v4_sml ckpt paths
Browse files
README.md
CHANGED
|
@@ -29,6 +29,12 @@ collected at its original object yaw and one randomly-selected augmented
|
|
| 29 |
yaw in `{90°, 180°, 270°}` around world-Z (a task-symmetric transform —
|
| 30 |
gravity, table and contact geometry are unchanged by yaw rotation).
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
## Per-object Breakdown
|
| 33 |
|
| 34 |
| ycb_class_id | object | orig | yaw aug | total |
|
|
@@ -94,10 +100,123 @@ rmdir Baseline1/data/episodes_b3_v4_full12_yaw/data
|
|
| 94 |
|
| 95 |
## Training Pipeline
|
| 96 |
|
| 97 |
-
Full retrain instructions:
|
| 98 |
[`Baseline1/RETRAIN_V4_FULL12.md`](https://github.com/stzabl-png/UCB_Project/blob/gate3-curobo-ik/Baseline1/RETRAIN_V4_FULL12.md)
|
| 99 |
in the UCB_Project repo.
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
## Collection Details
|
| 102 |
|
| 103 |
Collected by `sim/run_grasp_sim_baseline3_v4.py` (`gate3-curobo-ik` branch)
|
|
|
|
| 29 |
yaw in `{90°, 180°, 270°}` around world-Z (a task-symmetric transform —
|
| 30 |
gravity, table and contact geometry are unchanged by yaw rotation).
|
| 31 |
|
| 32 |
+
> **2026-05-26 update** — A complementary OakInk-sourced dataset is now available
|
| 33 |
+
> at [`UCBProject/DP3_OakInk_training_data`](https://huggingface.co/datasets/UCBProject/DP3_OakInk_training_data)
|
| 34 |
+
> (207 ep, 45 obj). For the next DP3 round we will train on the **combined
|
| 35 |
+
> 369-ep dataset** (DexYCB 162 + OakInk 207). See the
|
| 36 |
+
> "Combined Training (DexYCB + OakInk → fresh DP3 model)" section below.
|
| 37 |
+
|
| 38 |
## Per-object Breakdown
|
| 39 |
|
| 40 |
| ycb_class_id | object | orig | yaw aug | total |
|
|
|
|
| 100 |
|
| 101 |
## Training Pipeline
|
| 102 |
|
| 103 |
+
Full retrain instructions (DexYCB-only, original run):
|
| 104 |
[`Baseline1/RETRAIN_V4_FULL12.md`](https://github.com/stzabl-png/UCB_Project/blob/gate3-curobo-ik/Baseline1/RETRAIN_V4_FULL12.md)
|
| 105 |
in the UCB_Project repo.
|
| 106 |
|
| 107 |
+
---
|
| 108 |
+
|
| 109 |
+
## Combined Training (DexYCB + OakInk → fresh DP3 model)
|
| 110 |
+
|
| 111 |
+
We are now training a **new DP3 model** that combines this 162-ep DexYCB set
|
| 112 |
+
with the 207-ep OakInk set at
|
| 113 |
+
[`UCBProject/DP3_OakInk_training_data`](https://huggingface.co/datasets/UCBProject/DP3_OakInk_training_data).
|
| 114 |
+
|
| 115 |
+
**Important — preserve previous DexYCB-only artefacts**:
|
| 116 |
+
- The A6000 already has the previous DexYCB-only DP3 checkpoint
|
| 117 |
+
(`v4_sml` experiment, 3000-epoch run) and the corresponding train/test
|
| 118 |
+
split saved on disk. We still intend to evaluate that model. **The new
|
| 119 |
+
combined run MUST use distinct output paths so nothing is overwritten.**
|
| 120 |
+
- **Sim collection** for this round was completed entirely on the dev box
|
| 121 |
+
(RTX 5090). The earlier plan to also run sim collection on A6000 was
|
| 122 |
+
abandoned because the system glibc (2.31) is incompatible with IsaacSim
|
| 123 |
+
5.1's requirement (glibc 2.35). **The A6000 is training-only this round.**
|
| 124 |
+
(See [`UCBProject/baseline_3_v4_collection_assets`](https://huggingface.co/datasets/UCBProject/baseline_3_v4_collection_assets)
|
| 125 |
+
for the deprecated A6000 collection instructions, kept for reference only.)
|
| 126 |
+
|
| 127 |
+
### Step 1 — Layout the combined dataset in a fresh dir
|
| 128 |
+
|
| 129 |
+
```bash
|
| 130 |
+
cd $HOME/UCB_Project # the A6000 repo clone
|
| 131 |
+
|
| 132 |
+
# Fresh dir — do NOT reuse Baseline1/data/episodes_b3_v4_full12_yaw which holds
|
| 133 |
+
# the 162-ep DexYCB set and is the training input for the existing model.
|
| 134 |
+
NEW=Baseline1/data/episodes_b3_v4_dexycb162_oakink207_2026-05-26
|
| 135 |
+
mkdir -p "$NEW"
|
| 136 |
+
|
| 137 |
+
# 1.1 Copy DexYCB 162 ep from the existing local dir (already downloaded —
|
| 138 |
+
# do NOT re-download).
|
| 139 |
+
cp Baseline1/data/episodes_b3_v4_full12_yaw/*.hdf5 "$NEW/"
|
| 140 |
+
|
| 141 |
+
# 1.2 Download the new OakInk 207 ep
|
| 142 |
+
huggingface-cli download UCBProject/DP3_OakInk_training_data \
|
| 143 |
+
--repo-type dataset --local-dir /tmp/oakink_dl --include "data/*.hdf5"
|
| 144 |
+
cp /tmp/oakink_dl/data/*.hdf5 "$NEW/"
|
| 145 |
+
|
| 146 |
+
# 1.3 Verify count
|
| 147 |
+
ls "$NEW"/*.hdf5 | wc -l # expect 162 + 207 = 369
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
### Step 2 — Build a FRESH zarr (do not overwrite the existing one)
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
conda activate dp3 # same env A6000 already has
|
| 154 |
+
|
| 155 |
+
python Baseline1/convert_to_zarr.py \
|
| 156 |
+
"$NEW" \
|
| 157 |
+
--output_zarr Baseline1/data/dp3_train_v4_dexycb162_oakink207.zarr
|
| 158 |
+
```
|
| 159 |
+
|
| 160 |
+
Existing zarr (DexYCB-only) at `Baseline1/data/dp3_train_v4_sml.zarr`
|
| 161 |
+
remains untouched.
|
| 162 |
+
|
| 163 |
+
### Step 3 — Fresh train/test split
|
| 164 |
+
|
| 165 |
+
The previous split lives in
|
| 166 |
+
`third_party/3D-Diffusion-Policy/.../experiments/v4_sml/data_split/`.
|
| 167 |
+
**Do not touch it.** Make a new experiment dir:
|
| 168 |
+
|
| 169 |
+
```bash
|
| 170 |
+
cd third_party/3D-Diffusion-Policy/3D-Diffusion-Policy
|
| 171 |
+
|
| 172 |
+
EXP=dexycb162_oakink207_2026-05-26
|
| 173 |
+
|
| 174 |
+
python ../../../Baseline1/split_v4_full12.py \
|
| 175 |
+
--zarr ../../../Baseline1/data/dp3_train_v4_dexycb162_oakink207.zarr \
|
| 176 |
+
--train_ratio 0.8 \
|
| 177 |
+
--out_dir experiments/$EXP/data_split
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
### Step 4 — Fresh DP3 config + output dir
|
| 181 |
+
|
| 182 |
+
Copy the prior config and adjust:
|
| 183 |
+
```bash
|
| 184 |
+
cp config/v4_sml.yaml config/${EXP}.yaml
|
| 185 |
+
|
| 186 |
+
# Edit config/${EXP}.yaml:
|
| 187 |
+
# task.dataset_zarr_path: Baseline1/data/dp3_train_v4_dexycb162_oakink207.zarr
|
| 188 |
+
# exp_name: ${EXP}
|
| 189 |
+
# hydra.run.dir: experiments/${EXP}/${now:%Y-%m-%d_%H-%M-%S}
|
| 190 |
+
# checkpoint.save_ckpt: True ← critical, defaulted False historically
|
| 191 |
+
# checkpoint.topk.k: 3 (or more)
|
| 192 |
+
# training.num_epochs: 3000
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
### Step 5 — Launch
|
| 196 |
+
|
| 197 |
+
```bash
|
| 198 |
+
WANDB_MODE=online # or offline if A6000 has no internet
|
| 199 |
+
python train.py --config-name=${EXP}
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
Expected wall time on A6000 at batch_size=128: ~6 h for 3000 epochs on
|
| 203 |
+
369 ep (vs ~3 h for 162 ep).
|
| 204 |
+
|
| 205 |
+
### Step 6 — Output lands in a fresh dir
|
| 206 |
+
|
| 207 |
+
```
|
| 208 |
+
experiments/${EXP}/{date_time}/checkpoints/
|
| 209 |
+
experiments/${EXP}/{date_time}/wandb/
|
| 210 |
+
```
|
| 211 |
+
|
| 212 |
+
The previous experiment (`experiments/v4_sml/`) and its checkpoint remain
|
| 213 |
+
untouched. To re-evaluate the previous model later:
|
| 214 |
+
```bash
|
| 215 |
+
python eval.py --config-name=v4_sml # unchanged from before
|
| 216 |
+
```
|
| 217 |
+
|
| 218 |
+
---
|
| 219 |
+
|
| 220 |
## Collection Details
|
| 221 |
|
| 222 |
Collected by `sim/run_grasp_sim_baseline3_v4.py` (`gate3-curobo-ik` branch)
|