Repository navigation
Clear descriptor-index results for empty queries - #4960
Merged
ahojnnes merged 1 commit intoNov 6, 2026
Merged
Conversation
ahojnnes
approved these changes
Nov 4, 2026
ahojnnes
marked this pull request as ready for review
November 4, 2026 15:02
ahojnnes
enabled auto-merge (squash)
November 4, 2026 15:05
fringehush-gif
added a commit
to fringehush-gif/colmap
that referenced
this pull request
Nov 6, 2026
Bring the fork up to current upstream, including the fix that clears descriptor-index outputs when a query has no descriptors. ## Change - The existing empty-query branch now clears both result matrices. The extended parameterized regression first fills those outputs, then requires an empty result for an empty query across SIFT/ALIKED and flat/IVF indexes. ## Upstream commits - 5b6da88 - Clear descriptor-index results for empty queries (colmap#4960) ## Validation - The three-way merge is conflict-free; its two changed files match the imported upstream files exactly. - This merge imports upstream's regression and recorded validation; no additional native build or test execution was performed for this integration. AI disclosure: Totally vibe coded
fringehush-gif
added a commit
to fringehush-gif/colmap
that referenced
this pull request
Nov 7, 2026
Refresh the experimental alternative with fork main while retaining its previous head as a parent. The resulting tree is exactly main plus the isolated shared-current-cost-cache deletion: one CUDA file, +1/-25. ## Change Read the existing cost map directly during the ordered sampled-cost fold. Preserve current plane propagation, source packing, scheduling and fallback mathematics. The cache originates in custom a37c1c3, MVS: Reuse sampled current costs (GPU perf). The earlier alternative is retained through 8481f89; its original experiment was 8b1412f. Historical Fountain11 photo+geometry at 3072 recorded 76.85 -> 78.82 seconds, one observation per arm, on the older revision. Retain this inconclusive/adverse observation with its earlier revision; current performance has not been measured. No performance experiment was reopened. ## Validation - Exact candidate CUDA owner compiled with CUDA 13.2 for compute_86/sm_86. In a bounded retained-support context on RTX 3060, both matched targets passed all 13 selected cases: propagation, ordered source folding, checkpoint-HMM and paired-sweep preservation. - Four complete inputs and four outputs matched across executables: 8,492,128 bytes per arm. Maps were finite with positive depth and checked ordered graph IDs. Complete witnesses use checkpoint_hmm=false; separate checkpoint tests cover both settings without full cross-executable true-mode witnesses. - Direct owners, link maps and actual loaded providers were checked; managed jobs ended and released their bookings. Later host resize/warp changes have separate owner qualification. This is not a whole-branch build, reconstruction-quality, portability or current-performance result. ## Upstream commits carried forward - e52aa8e Move pycolmap macOS CI from macos-14 to macos-15 runner (colmap#4933) - 8007d1a Preserve float weight ordering in maximum spanning trees (colmap#4928) - dd84102 Bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 in /.github/workflows (colmap#4942) - 721e185 Add FlexGlue feature matcher (colmap#4908) - d0a411f FlexGlue: cache the dense features on the GPU (colmap#4915) - 105817b Hoist camera model dispatch per row in image warps (colmap#4935) - 27ffad4 Make benchmark translation-angle errors invariant to reconstruction scale (colmap#4932) - e8f3522 Resolve benchmark paths before changing subprocess directories (colmap#4931) - f664d5d Clamp visibility coordinates before unsigned conversion (colmap#4943) - 138119b Keep thin bitmap thumbnails nonempty (colmap#4927) - b16ed5f Count rig frame covisibility once per 3D point (colmap#4893) - 93dbbcb Add colmap-review agent skill for code review (colmap#4934) - 2a6f695 Fix sift_test build on MSVC without the GUI (colmap#4955) - 78cc729 Fix default prior_position_loss_scale to sqrt(chi2_95_3dof) (colmap#4936) - 8653c6b Estimate two-view relative rotation covariance (colmap#4950) - e1317dd FlexGlue: match keypoints in the resized descriptor input frame (colmap#4949) - 3db6eb0 Extract ConvertPosePriorsToENU and skip pose priors without position (colmap#4937) - 77cbe48 Store and estimate rotation covariances on PoseGraph (colmap#4951) - 30a1a81 Support covariance whitening in CeresRotationAverager (colmap#4952) - e6644e7 Fix -Wunused-result warning in ThreadPool::AddTask (colmap#4958) - 5b6da88 Clear descriptor-index results for empty queries (colmap#4960) - d1d92d9 Add COVARIANCE reweighting for Ceres rotation averaging (colmap#4953) - 761d90d Enable covariance-weighted rotation averaging in global pipelines (colmap#4823) - fdee2e1 Reuse the pose graph of GlobalPipeline in the component mappers (colmap#4912) AI disclosure: Totally vibe coded
ak-constructn
added a commit
to constructn-corp/colmap
that referenced
this pull request
Nov 10, 2026
Clear descriptor-index results for empty queries (colmap#4960)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FeatureDescriptorIndex::Searchreturns early for an empty descriptor matrix without updating its output matrices. A C++ caller that reuses those matrices after a nonempty query receives the previous query's indices and distances for an empty input.Clear both matrices in the existing empty-query branch, matching the existing empty-index result convention. Type and descriptor-width validation and nonempty FAISS searches stay unchanged. The current SIFT pipeline already filters empty images before this call; this fix covers direct use of the public index utility.
I extended the existing parameterized native test to search an empty matrix after filling both outputs. All four combinations fail the new assertions on pristine production and pass with the fix, covering SIFT/ALIKED and flat/IVF indexes. All five module tests pass. A separate native check covers 72 empty queries and 312 ordinary, repeated and rebuild controls; ordinary results match pristine output exactly. Clang-format, scoped Clang-Tidy and whitespace checks pass.
I validated the actual C++ owner with MSVC Release and generic CPU FAISS 1.15.1. I did not run a full application build, reconstruction datasets, GPU builds, dynamic-dispatch builds or other operating systems.
AI assistance disclosure: AI-assisted development tools were used during investigation and implementation. The reported tests were run against the final diff.