use case Β· wild Β· 256Γ—256 cross-image correspondence & invariance suite Β· Apache-2.0

256Γ—256 Cross-Image Semantic Correspondence & Invariance Suite

Click or arrow-key any cell on Photo A to query all 256 patch tokens in Photo B via the live 256Γ—256 cosine matrix and inspect mutual argmax arcs. Then benchmark DINOv2-Base's [CLS] and mean-patch invariance under horizontal flip, center crops, grayscale, blur, and brightness shifts.

1. Initialise DINOv2-Base & Choose Photo Pair

Initialise DINOv2-Base above, then click any 16Γ—16 cell on Photo A to find its top-K matches in Photo B.

2. Interactive 256Γ—256 Patch Correspondence

Photo A Β· Query Patch

Photo B Β· Top-K Patch Matches

Waiting for pair feature extraction…

Source Patch A–
Best Match B–
Best Patch Cosine–
Cycle-Consistent–
Mutual Pairs–
[CLS] Pair Cosine–
Top-K semantic patch matches on Photo B from the 256Γ—256 cosine similarity matrix
Rank Photo B Cell (row, col) Patch Cosine Patch Index
Extract pair features above to list top-K matching patches.

3. Live 6-Transform Geometric Invariance Suite

Measure how tightly Photo A's DINOv2-Base [CLS] and mean-patch descriptors stay aligned under real client-side transforms: horizontal flip, 75% & 50% center crops, grayscale, 3 px Gaussian blur, and +28% brightness.

Live [CLS] and mean-patch cosine retention under perturbations of Photo A
Transform [CLS] Cosine Mean-Patch Cosine Latency NaN Count
Click "Run 6-Transform Invariance Suite on Photo A" to measure live retention.

Show the code

Show the code β€” dinov2-core.mjs: computePatchCorrespondence() (256Γ—256 patch cosine + cycle check)
Show the code β€” dinov2-core.mjs: findMutualCorrespondences() (mutual argmax nearest-neighbor pairs)