xsponenta commited on
Commit
6cf3fbd
·
1 Parent(s): 9deb9e1

Boost: COLMAP plane refinement + junction constraints + snap fixes

Browse files

Inference-only improvements (no retraining required) targeting both
corner_f1 and edge_iou:

- Integrate refine_vertices_multiview_plane in main loop. Built but
never called; snaps each vertex onto the roof plane visible at its
2D projection across views, weighted by per-view PCA quality.
Directly targets corner_f1 (currently the largest gap vs leaders).
- Integrate apply_junction_constraints after hybrid_merge: drops
collinear duplicate vertices, antiparallel duplicate edges, and
short leaf edges. Improves edge_iou by removing structurally
invalid topology. Falls back to pre-junction graph if it would
produce zero edges.
- snap_to_point_cloud now includes flashing_end_point (class 3) as
a snap target. Previously only classes 1+2 were used.
- snap_horizontal now only moves a vertex when ALL of its incident
edges are near-horizontal — prevents corruption of sloped edges
that share a vertex with an eave.
- hybrid_merge: accept track edges between two existing predicted
vertices when both are within a tight 0.3 m radius (high-confidence
topology correction). Previously only edges touching new vertices
were accepted.

Each new integration is wrapped in try/except so a failure on any
sample falls back to the previous behaviour.

2 files changed +97 -19
Files changed (2)
s23dr_2026_example/postprocess_v2.py+33-8
script.py+64-11