Upload data/BUNDLE_README.md with huggingface_hub
Browse files- data/BUNDLE_README.md +73 -0
data/BUNDLE_README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# S3DB Scene-Graph / Layout-Attn Data Bundle
|
| 2 |
+
|
| 3 |
+
Everything needed to **train and evaluate scene-graph (SG) and layout-attention
|
| 4 |
+
conditioning** in the merged 3D-Belief repo (`merge-sg-conditioning` branch).
|
| 5 |
+
Trained model checkpoints are **not** included (20β21 GB each) β see the bottom.
|
| 6 |
+
|
| 7 |
+
## Contents
|
| 8 |
+
|
| 9 |
+
```
|
| 10 |
+
s3db_sg_layout_bundle/
|
| 11 |
+
βββ s3db_dataset/train/<episode>/ # 2997 ProcTHOR-style episodes (minimal files)
|
| 12 |
+
β βββ rgb_trajectory.mp4 # RGB frames (read via cv2 β the loader uses THIS, not all_rgb.npz)
|
| 13 |
+
β βββ all_depths.npz # metric depth, key "depths" [N,H,W]
|
| 14 |
+
β βββ all_poses.npz # GT camera-to-world poses, key "poses" [N,4,4]
|
| 15 |
+
β βββ all_scene_graphs.json # per-frame scene graph: object instances + walls (THE conditioning signal)
|
| 16 |
+
β βββ door_window_bboxes.json # (optional) precomputed door/window bboxes; refines wall conditioning
|
| 17 |
+
β βββ trajectory_metadata.json # episode metadata
|
| 18 |
+
βββ vocab/
|
| 19 |
+
β βββ s3db/ # S3DB object vocabulary + frozen text embeddings
|
| 20 |
+
β β βββ type_to_id.json / id_to_type.json # 750-type vocab (+ *_751.json variants)
|
| 21 |
+
β β βββ sg_type_embeddings.pt # CLIP ViT-B/16 text embeddings (512-d) β SG / FiLM conditioning
|
| 22 |
+
β β βββ sg_type_embeddings_minilm.pt # MiniLM-L6-v2 text embeddings (384-d) β layout-attn text head
|
| 23 |
+
β β βββ class_freq.pt # per-class frequency β layout-attn class weighting
|
| 24 |
+
β βββ procthor/ # ProcTHOR vocab variant (id maps + CLIP embeddings)
|
| 25 |
+
βββ checkpoints/
|
| 26 |
+
β βββ dinov3_vitb16_pretrain_lvd1689m.pth # DINOv3 ViT-B β REPA target + layout-attn visual stream
|
| 27 |
+
βββ README.md # this file
|
| 28 |
+
βββ SCENE_GRAPH_CONDITIONING.md # full merge notes (configs, scripts, training/eval commands)
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## What each component is for
|
| 32 |
+
|
| 33 |
+
| Component | Purpose in the pipeline |
|
| 34 |
+
|---|---|
|
| 35 |
+
| `s3db_dataset` | Training/eval data. `ProcTHORDataset` reads `<root>/train/<ep>/` β RGB from the mp4, depth/poses from npz, and the scene graph from `all_scene_graphs.json` (parsed into node types/positions/sizes/edges + wall segments). |
|
| 36 |
+
| `vocab/s3db/sg_type_embeddings.pt` (CLIP) | Frozen per-type embeddings for the **SG** backbone (`u_vit3d_pose_sg`, FiLM + GCN, closed/open-vocab recon). |
|
| 37 |
+
| `vocab/s3db/sg_type_embeddings_minilm.pt` (MiniLM) | Frozen per-type embeddings for the **layout-attn** backbone's text prototype head (`u_vit3d_pose_layout`). |
|
| 38 |
+
| `vocab/s3db/class_freq.pt` | Class-frequency weighting for the layout-attn auxiliary CE loss. |
|
| 39 |
+
| `checkpoints/dinov3_*.pth` | DINOv3 ViT-B. Used as the REPA alignment target (both backbones) **and** as the per-pixel visual layout stream for layout-attn (`use_visual_layout=true`). |
|
| 40 |
+
|
| 41 |
+
## How to use (in the merged repo)
|
| 42 |
+
|
| 43 |
+
Point the configs at this bundle:
|
| 44 |
+
- `dataset.root_dir=<bundle>/s3db_dataset` (dir containing `train/`)
|
| 45 |
+
- `dataset.vocab_dir=<bundle>/vocab/s3db`
|
| 46 |
+
- `model.encoder.backbone.sg_type_embeddings_path=<bundle>/vocab/s3db/sg_type_embeddings.pt` (SG)
|
| 47 |
+
or `.../sg_type_embeddings_minilm.pt` (layout-attn)
|
| 48 |
+
- `model.encoder.backbone.class_freq_path=<bundle>/vocab/s3db/class_freq.pt` (layout-attn)
|
| 49 |
+
- `repa_encoder_weights=<bundle>/checkpoints/dinov3_vitb16_pretrain_lvd1689m.pth`
|
| 50 |
+
- `model.encoder.backbone.dinov3_weights_path=<same dinov3 path>` (layout-attn visual)
|
| 51 |
+
|
| 52 |
+
Launch scripts (already in the repo under `scripts/training/`):
|
| 53 |
+
- SG conditioning: `scripts/training/structured/train_s3db_film_clip_sg.sh`
|
| 54 |
+
- Layout-attn: `scripts/training/structured/train_s3db_layoutattn.sh`
|
| 55 |
+
- Base init: `scripts/training/structured/train_s3db_base.sh`
|
| 56 |
+
- Eval/inference: `scripts/training/eval_s3db_sg_ablation.sh`, `eval_s3db_layoutattn_ablation.sh`
|
| 57 |
+
|
| 58 |
+
(Edit `DATASET_ROOT` / `VOCAB_DIR` / dinov3 path / `CUDA_VISIBLE_DEVICES` in each script header.)
|
| 59 |
+
|
| 60 |
+
## NOT included (transfer separately if needed)
|
| 61 |
+
|
| 62 |
+
- **Trained model checkpoints** (~20β21 GB each), at
|
| 63 |
+
`β¦/structured_3d_belief/3d-belief/outputs/training/`:
|
| 64 |
+
- `s3db_film_clip_sg_closed/model-34.pt` (SG, closed-vocab; needs `n_object_types=751`)
|
| 65 |
+
- `s3db_layoutattn*/model-*.pt` (layout-attn)
|
| 66 |
+
- `s3db_base/model-22.pt` (base init for fine-tuning the conditioned variants)
|
| 67 |
+
Needed only for **eval/rollout/fine-tune**; not for training from scratch.
|
| 68 |
+
- **VGGT checkpoint** β only if training/eval with `use_vggt_alignment=true`.
|
| 69 |
+
- Per-episode files intentionally dropped (not read by the loader in this scope):
|
| 70 |
+
`all_rgb.npz` (RGB comes from the mp4), `all_segmentation.npz`, `all_semantic_meta.json`,
|
| 71 |
+
`all_class_pp_128.npz`, `structural_gt.json` (SG-LLM only), `predicted_poses.npz`
|
| 72 |
+
(predicted-pose only), `*.bak`, `gt_obbs.json`, `scene_graph_full*.json`,
|
| 73 |
+
`semantic_trajectory.mp4`, `top_down_view_*.png`.
|