xsponenta commited on
Commit
6ecd5f8
·
1 Parent(s): 857514e

Revert TTA + add COLMAP-support vertex filter

Browse files

The TTA experiment (commit 857514e) regressed -0.011 vs baseline
(0.4475 vs 0.4584). The K=3 union added more candidate vertices
than the post-merge could consolidate, producing duplicate / shifted
vertices and dropping corner_f1 by 0.022.

Restore script.py to the 56f1ec6 baseline state, then add ONE
principled precision-only step:

filter_by_colmap_support: after hybrid_merge, drop predicted vertices
that have no COLMAP point within support_radius=0.6m. These are
model hallucinations in regions without geometric evidence.

Why this is principled: real roof vertices are always near reconstructed
COLMAP geometry (the COLMAP cloud covers the entire visible building).
Predicted vertices in empty 3D space are by construction wrong.

Safety guarantees:
- Falls back to unfiltered output on any exception (try/except wraps
pycolmap access and KD-tree query).
- Refuses to leave fewer than 2 vertices / 1 edge — never produces an
empty submission.
- Conservative 0.6m radius: comfortably covers normal COLMAP sparsity.

Expected effect: small precision boost on corner_f1, neutral or
positive edge_iou (edges to dropped vertices are removed cleanly).

1 file changed +96 -148
script.py+96-148