Datasets:
add methodology
Browse files- METHODOLOGY.md +72 -0
METHODOLOGY.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Methodology and Reproducibility
|
| 2 |
+
|
| 3 |
+
## Datasets
|
| 4 |
+
- Game-depth (ours): 48,615 RGB (1080x1920) plus dense engine z-buffer depth (log-nearness). Training uses
|
| 5 |
+
a session-balanced split (at most 200 frames/session, 17,799 frames), stride-sampled to reduce 3-fps
|
| 6 |
+
temporal redundancy. Splits are session-disjoint. Held-out game test set: 999 session-disjoint frames.
|
| 7 |
+
- NYU Depth V2 (real, indoor): official BTS split, 24,231 train frames
|
| 8 |
+
(`nyudepthv2_train_files_with_gt.txt`), 654 Eigen test. Depth = uint16 PNG / 1000 m; valid = png > 0.
|
| 9 |
+
- KITTI (real, outdoor): depth-selection `val_selection_cropped`, 1000 frames, 352x1216, annotated
|
| 10 |
+
semi-dense GT. Depth = uint16 PNG / 256 m; valid = png > 0; eval cap 80 m.
|
| 11 |
+
|
| 12 |
+
## Model and training recipe
|
| 13 |
+
- Architecture and recipe: Lotus (latent diffusion, SD2-base backbone; single-step x0 at t=999; RGB+depth
|
| 14 |
+
latent concat, 8-channel conv_in; `trunc_disparity` normalization). Recipe used verbatim; only the data
|
| 15 |
+
reader differs.
|
| 16 |
+
- Game pre-training (our model): init SD2-base; effective batch 32; 6000 steps; LR 3e-5 constant.
|
| 17 |
+
- NYU fine-tuning: identical recipe for both initializations (our game model, released Lotus). Both are
|
| 18 |
+
evaluated under a learning-rate sweep (best-of checkpoints saved every 750 steps). A first comparison at
|
| 19 |
+
LR 3e-5 suggested a game-pretraining advantage, but a fair LR sweep showed the Lotus baseline had been
|
| 20 |
+
under-tuned (best LR-1e-5 checkpoint reaches AbsRel 0.115). The honest conclusion is that the indoor
|
| 21 |
+
fine-tuning difference is a training-recipe effect, not a data effect; the matched sweep for our own model
|
| 22 |
+
is being finalized.
|
| 23 |
+
|
| 24 |
+
## Evaluation harness (all models, one protocol)
|
| 25 |
+
- Inference: LotusGPipeline for the diffusion models, single-step, task-emb depth.
|
| 26 |
+
- Per-model output conventions handled explicitly: ours and Lotus predict nearness (a disparity proxy),
|
| 27 |
+
Marigold predicts affine-invariant depth, Depth-Anything-V2 predicts inverse depth.
|
| 28 |
+
- Per-model inference settings, disclosed for fairness: ours and Lotus single-step; Marigold 10 steps with
|
| 29 |
+
ensemble size 1 (single-sample, not its multi-sample best); Depth-Anything-V2 a single forward pass.
|
| 30 |
+
- Resolution: NYU and game frames processed at long-side 768. KITTI processed at native resolution, because
|
| 31 |
+
its roughly 3.4:1 frames are otherwise squashed to about 224 px tall and blurred; native processing
|
| 32 |
+
improves every model and is the pinned KITTI protocol.
|
| 33 |
+
- Metrics: AbsRel, SqRel, RMSE, RMSElog, log10, delta1/2/3, plus SSI-MAE and boundary-F1 for the game
|
| 34 |
+
held-out set.
|
| 35 |
+
- Cropping and caps: NYU Eigen crop, cap 10 m. KITTI no extra crop (val set is pre-cropped), cap 80 m.
|
| 36 |
+
- Alignment: least-squares scale-shift to the ground truth (predictions are relative).
|
| 37 |
+
- Harness validation: Depth-Anything-V2 reproduces its published NYU AbsRel (about 0.055) in this harness,
|
| 38 |
+
so the relative ordering across models is trustworthy even though single-step numbers differ from each
|
| 39 |
+
paper's own protocol.
|
| 40 |
+
|
| 41 |
+
## Analysis
|
| 42 |
+
- Appearance (DINOv2 Frechet distance): frozen DINOv2 ViT-S/14 embeddings, L2-normalized; Frechet distance
|
| 43 |
+
between Gaussian-fit embedding sets (game training split vs NYU vs KITTI). Preprocessing is
|
| 44 |
+
aspect-preserving center-crop to 224 (a naive square resize was tested and rejected because it distorts
|
| 45 |
+
wide KITTI). This is a semantic, not photometric, similarity measure and is treated as one correlational
|
| 46 |
+
signal, not proof.
|
| 47 |
+
- Depth geometry (ground-plane strength): for each image, Spearman rank correlation rho between pixel row
|
| 48 |
+
and pixel distance over valid pixels (subsampled to 4000 px/image); we report the per-image rho
|
| 49 |
+
distribution (median and mean). Distance is depth (m) for real sets and 1 minus nearness for the game
|
| 50 |
+
data. Being rank-based and per-image, rho is scale-invariant and unaffected by KITTI's sky-crop.
|
| 51 |
+
- Causal test (in progress): keep the game RGB fixed, progressively flatten the depth target to destroy the
|
| 52 |
+
ground-plane geometry, retrain from scratch at each corruption level, and measure KITTI transfer. If
|
| 53 |
+
transfer degrades as geometry is destroyed, the geometry is the causal driver rather than a confound.
|
| 54 |
+
|
| 55 |
+
## KITTI win robustness
|
| 56 |
+
The KITTI advantage is checked against the concern that a metric win could reflect fitting sensor noise or a
|
| 57 |
+
trivial ground plane. Recomputing the win under stricter valid masks refutes this: it grows when boundary
|
| 58 |
+
and isolated LiDAR pixels are eroded (+0.074 AbsRel gap) and at long range beyond 20 m (+0.086), and is
|
| 59 |
+
neutral only on upper-image vertical structures. That is the signature of a genuine ground-plane advantage.
|
| 60 |
+
|
| 61 |
+
## Files
|
| 62 |
+
- `results/results_summary.json`: headline metrics.
|
| 63 |
+
- `results/geometry_analysis.json` and `results/geo_rho_per_image.json`: geometry rho.
|
| 64 |
+
- `results/fid_recheck.json` and `results/domain_analysis.json`: DINOv2 Frechet distance.
|
| 65 |
+
- `figures/geometry_profile.png`: per-image ground-plane rho distribution.
|
| 66 |
+
|
| 67 |
+
## Known caveats
|
| 68 |
+
- Indoor is out of distribution (0% indoor in training); the NYU zero-shot gap reflects data distribution.
|
| 69 |
+
- Depth GT is relative log-nearness, not metric; cross-dataset comparisons are done in normalized space.
|
| 70 |
+
- Point estimates are single-seed; multi-seed variance and bootstrap confidence intervals are being added.
|
| 71 |
+
- Marigold and Depth-Anything-V2 are external checkpoints trained under conditions we do not control, so
|
| 72 |
+
they are reference points rather than controlled comparisons; the controlled comparison is ours vs Lotus.
|