plmap segmap VAE: best checkpoints, handoff note, findings, logs (2026-09-01)
Browse filesFiles changed (9)
- plmap_segmap_vae_2026-09-01/HANDOFF_segmap.mdAdded+91
- plmap_segmap_vae_2026-09-01/NOTES_segmap_session_2026-09-01.mdAdded+66
- plmap_segmap_vae_2026-09-01/bigval_16x32_lat32.ptAdded+3
- plmap_segmap_vae_2026-09-01/bigval_32x64_lat32.ptAdded+3
- plmap_segmap_vae_2026-09-01/full75_16x32_mir_on_s42.ptAdded+3
- plmap_segmap_vae_2026-09-01/full75_lat128_posnone.ptAdded+3
- plmap_segmap_vae_2026-09-01/full75_lat64_posdir.ptAdded+3
- plmap_segmap_vae_2026-09-01/full75_lat64_posnone.ptAdded+3
- plmap_segmap_vae_2026-09-01/logs_session_2026-09-01.tar.gzAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091# Handoff β segmap CLIP VAE, as of 2026-09-01
You are picking up `train_segmap_dev.py` on the Holo360D corpus. This file is theshort version; `NOTES_segmap_session_2026-09-01.md` beside it has the tables, andthe `run_*.sh` scripts each carry their rationale and result in the header.
## Where everything is
- **Code**: GitHub `Enze-Tao/plmap`, `main` (private repo β you need your own credential; anonymous clone fails).- **Metrics**: wandb `eztao/segmap_vae`. Run names match `--output_dir` basenames.- **Checkpoints**: HF dataset `eztao/data_transfer`, folder `plmap_segmap_vae_2026-09-01/`. The instance they were made on is **not** volume-backed, so the local `checkpoints/` may be gone.- **Data**: `data/Holo360D`, 75 scenes / 109,491 frames / 53 classes. If the instance was recycled this is gone too; rebuild with `download_holo360d.py` then `caption_holo360d_batch.py` then `sam_holo360d.sh` (days of GPU).
## The current best configuration
```bash/workspace/venvs/sam3/bin/python train_segmap_dev.py \ --data_root data/Holo360D --scenes $(cat scenes_holo360d_75.txt) \ --val_scenes Indoor_015,Outdoor_004 \ --grid_h 16 --grid_w 32 --yaw_aug 32 --mirror_aug \ --encoder conv --encoder_depth 1 --encoder_stages 3 \ --decoder conv --decoder_depth 1 --decoder_stages 3 \ --latent_dim 64 --embed_dim 256 --pos_emb none \ --decoder_norm unit --target_norm unit --recon_loss cos --ce_weight 0 \ --class_weighting none --optimizer adamw --lr 5.449566035173072e-05 \ --weight_decay 0.04010881001908307 --decoder_dropout 0.167302371540838 \ --encoder_dropout 0.02113877801295325 --target_rate 59.020323298228185 \ --epochs 150 --early_stop_patience 40 --select_on recon \ --scheduler plateau --plateau_factor 0.5 --plateau_patience 8 --seed 42```β `full75_lat64_posnone`: cos 0.98653, cosine error 0.01347, nmse 0.1942,mIoU 0.2601, acc 0.7686. **Always `export HF_HOME=/workspace/hf_cache`** or gatedrepos 401. Env is `/workspace/venvs/sam3` β nothing else works on this box.
## Rules for reading numbers (learn these before running anything)
1. **Seed noise floor is 0.36%** of cosine error; **mIoU's is 2.54%**. Anything smaller is noise. Do not repeat the old "~3%" figure β it came from a different architecture.2. **`recon/nmse` is not comparable across resolutions or `--target_norm` settings** (each divides by its own fitted baseline). `recon/cos` is denominator-free but *still* not comparable across resolutions, because coarser cells blend more classes and sit nearer the mean CLIP direction (which alone scores 0.919) β they are intrinsically easier. To compare resolutions, score both on ONE target population; the method is in `NOTES_*`.3. `recon/cos` weights cells equally; the loss weights by solid angle Γ class Γ validity. `recon/cos_solid` reports the objective's weighting (+0.6% at 16x32, +2.9% at 32x64).4. Judge rare-class work on GT-present classes, not `best/miou`.
## Settled β do not re-derive
conv encoder beats attention Β· internal grid **2x4** at every resolution (1x2causes total posterior collapse β check `vae/active_units`) Β· 16x32 is a trueresolution optimum Β· latent 64 (8/16 cannot reach the rate target; 128 saturates)Β· embed 256 (128 costs 8.2%) Β· plateau scheduler Β· `--class_weighting none` forreconstruction, `invsqrt` for mIoU Β· mirror augmentation on Β· rate/`--target_rate`is not a lever Β· sub-cell yaw, beta init, epoch budget, `--pos_emb`, decoderdepth: all null or negative.
## Open, in the order I would take them
1. **Downstream compatibility.** The whole latent/diffusion chain assumes 32x64. 16x32 wins by 24.6% and a 16x32 model *upsampled* serves 32x64 targets at least as well as a native 32x64 one β so the fix is probably to upsample, but nobody has run `encode_grid_latents.py` β `train_grid_diffusion.py` on a 16x32 latent to check. This gates whether any of the above is usable. Cheap: code reading.2. **More scenes.** Data is the biggest measured lever (18 β 73 train scenes was 12.3% cosine error, and latent 64's gain *grew* with data). Nothing else comes close. This is a segmentation job, not a model job.3. Latent 64 has one seed. A replication was killed mid-run at teardown.4. The mean-seeking cos objective is the last untested hypothesis for blur.
## Traps that have cost time
- The **20-scene fast loop** (`test/` scenes only) is ~11 min/run vs ~55, and the 0.36% floor makes it a precise screening instrument β but rankings can differ at full data scale, so promote survivors to 75 scenes before believing them.- Changing `--scenes` changes the **vocabulary**, which invalidates every `cellmix_HxW_*.npz` for those scenes (~15 min rebuild for 20, ~1 h for 75). The 20-scene runs and the 75-scene runs will ping-pong the caches. Use `use_cache=False` for one-off evals so they do not thrash.- `--yaw_aug` caps at `--grid_w` Γ `--yaw_subcell`.- Do not run two GPU jobs at once; they each slow ~3x. I did it twice by accident.- Verify a kill actually killed the right PID β `pgrep -f` matches its own command string, and `| head -1` can pick a wrapper instead of the target.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566# segmap VAE β findings, 2026-08-31 / 09-01
Written to the repo because the instance filesystem is not volume-backed(`workspace_is_volume: false`) and does not survive a recycle. Metrics for everyrun below are on wandb (`eztao/segmap_vae`) under the run names given.
## Headline
Best configuration is **16x32, conv encoder d1 stages 3, conv decoder stages 3depth 1, latent 64, embed 256, class_weighting none, plateau, yaw 32 + mirror,`--pos_emb none`** (`full75_lat64_posnone`), on the full 75-scene corpus:
| | cosine | cosine error | nmse | mIoU | acc ||---|---|---|---|---|---|| previous best (latent 32) | 0.98491 | 0.01509 | 0.2177 | 0.2357 | 0.7613 || **this** | **0.98653** | **0.01347** | **0.1942** | **0.2601** | 0.7686 |
β12.0% cosine error with every headline metric improving together and thegeneralisation gap narrowing β rare here, where most levers trade one for another.
## Measurement (read this before trusting any small number)
- **Seed noise floor is 0.36%** of cosine error (3 seeds, range), not the ~3% that had been assumed from an old attention-encoder measurement. **mIoU's floor is 2.54%**, seven times looser β mIoU differences under ~2.5% are noise.- Seeds do *not* vary the held-out rooms. Widening validation from 2 scenes to 8 (`bigval_16x32_lat32`) moved cosine error 0.01509 β 0.01513, inside the floor, so the two-room estimate of *reconstruction* was accurate; but acc rose 0.7613 β 0.7795 and mIoU 0.2357 β 0.2572, so the two-room *class* metrics were pessimistic.- `recon/cos` weights observed cells equally; the objective weights them by solid angle Γ class weight Γ validity. `recon/cos_solid` (added) reports the objective's own weighting. The gap is +0.6% at 16x32 and +2.9% at 32x64 β small, and it widens the 16x32-over-32x64 margin rather than closing it.- Resolutions cannot be compared on `cos` or `nmse` directly: coarser cells blend more classes and sit nearer the mean CLIP direction, so they are intrinsically easier. Use the cross-resolution evaluation (score both on one target population).
## What helps, what does not
| axis | result ||---|---|| latent 8 / 16 | +48.3% / +22.7% β hard rate ceiling, cannot reach the 59-nat target || latent 64 | **β12.0%** at full scale (β6.5% at 20 scenes; the gain grows with data) || latent 128 | saturates: β0.5% beyond 64, mIoU worse, 18/128 units idle || embed_dim 128 | +8.2% β 256 is not excess width || internal grid | 2x4 optimal at every resolution; 4x8 +2..5%; **1x2 total posterior collapse** || resolution | 16x32 is a true optimum: 8x16 loses by 7.3%, 32x64 by 2.8% (fair test) || mirror aug | β1.2%, the first lever to fit train worse and val better || sub-cell yaw | null (+0.2%) || beta init, epoch budget | null || decoder depth | negative β train fit improves, val degrades, gap doubles |
**Capacity pays in the bottleneck and the channel width; it costs in depth and inspatial internal grid.**
## Gotchas found
- `train()` accepted `--scenes` and ignored it β every run used every scene under `--data_root`. Fixed. No past result changed (pinned 75 == disk contents).- 8x16's "resolution collapse" was the 1x2 internal grid three stages forces there, not the resolution. With `--encoder_stages 2 --decoder_stages 2` it trains fine. Watch `vae/active_units` on any new geometry; 0 means the grid is too small.- `--yaw_subcell` is limited to 2 on this corpus: `grid_w * k` must divide both the 1024-wide class masks and the 2880-wide capture masks.- Class vocabulary limits the ceiling: basket/basketball are 21.6Β° apart, and the model's typical error is ~9Β°, so some confusions are unfixable by any model.123version https://git-lfs.github.com/spec/v1oid sha256:343fcedcd80db20a355d1fdb950591f8462ff7cf3b51ff7f31c0f10df6b6db35size 8865093123version https://git-lfs.github.com/spec/v1oid sha256:50dadb39e50527199a55d3d3d8e9760f79705e9daa2075378ff88940f7f3bb7csize 13592405123version https://git-lfs.github.com/spec/v1oid sha256:0e9aeba87dc3b984b798ad0b67440392a38b3627e92096d75e3913653e0a0ae0size 8858693123version https://git-lfs.github.com/spec/v1oid sha256:a131bed644cc639662a46bcada646dc75701f08c1ad069afe83bfd8fffb1c38esize 11224901123version https://git-lfs.github.com/spec/v1oid sha256:5f4b0f99a91e016391951b6ef442f86cdbd44d65bfbb51d7d137b1279dd40806size 9645381123version https://git-lfs.github.com/spec/v1oid sha256:95ddd10134fce403e017156288d3b149d33601e38b29b5a5e9ed10e18c51315esize 9651525123version https://git-lfs.github.com/spec/v1oid sha256:1381da24136345dc111614232434c6f484ecc64dd119c3318d4f81d408dbd43csize 272559plmap_segmap_vae_2026-09-01/HANDOFF_segmap.mdAdded+91
plmap_segmap_vae_2026-09-01/NOTES_segmap_session_2026-09-01.mdAdded+66
plmap_segmap_vae_2026-09-01/bigval_16x32_lat32.ptAdded+3
plmap_segmap_vae_2026-09-01/bigval_32x64_lat32.ptAdded+3
plmap_segmap_vae_2026-09-01/full75_16x32_mir_on_s42.ptAdded+3
plmap_segmap_vae_2026-09-01/full75_lat128_posnone.ptAdded+3
plmap_segmap_vae_2026-09-01/full75_lat64_posdir.ptAdded+3
plmap_segmap_vae_2026-09-01/full75_lat64_posnone.ptAdded+3
plmap_segmap_vae_2026-09-01/logs_session_2026-09-01.tar.gzAdded+3