chore(examples): dump db_id pyramid in simple_nft_dual to aid #160 triage#163
Open
kalwalt wants to merge 1 commit into
Open
chore(examples): dump db_id pyramid in simple_nft_dual to aid #160 triage#163kalwalt wants to merge 1 commit into
kalwalt wants to merge 1 commit into
Conversation
…iage Refs #160. simple_nft_dual.rs now prints all reference-image pyramid levels read from the .fset3 right after feed_ref_data succeeds, e.g.: Reference pyramid (9 levels): db_id=0 -> 893x1117 px db_id=1 -> 750x938 px db_id=2 -> 595x745 px ... db_id=8 -> 149x186 px This makes the multi-scale nature of the .fset3 immediately visible when investigating cross-backend divergence — anyone reproducing issue #160 can see which db_id got matched and the dimensions of the reference variant used by the M9 #152 tier-2 corner-reprojection metric, without having to add an ad-hoc print themselves. Pure diagnostic addition; no behavioural change. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
Refs #160. Small follow-up to #159 (merged).
Summary
simple_nft_dual.rsnow prints all reference-image pyramid levels read from the.fset3right afterfeed_ref_datasucceeds:Pure diagnostic. No behavioural change.
Why
When the dual matcher reports
matched_id = 2and a tier-2 divergence at "ref image 595x745", anyone reproducing #160 can now immediately see which db_id got matched, the full set of pyramid levels available, and confirm that 595x745 is a legitimate~2/3-scale level of the 893x1117 master (and not a stale-cache or axis-swap pathology). Saves an ad-hoc print step during triage.The pyramid ratios on pinball are a clean
2^(-1/3)geometric series — i.e. a 1/3-octave pyramid with 3 levels per octave. Useful piece of ground truth for #160's "is this expected BHC-variance vs. a per-scale parity bug?" decision.Test plan
cargo fmt --all -- --checkcleancargo build --features "dual-mode log-helpers" --example simple_nft_dualsucceedscargo run --features "dual-mode log-helpers" --example simple_nft_dualproduces the dump in the expected position (Phase A, immediately after "Reference data loaded into both backends")Refs
🤖 Generated with Claude Code