use case Β· wild Β· cross-image patch correspondence & invariance lab Β· Apache-2.0

Cross-Image Patch Correspondence & Crop/Flip Invariance Lab

Click or arrow-key any cell on Photo A to search all 196 patch tokens in Photo B via the live 196Γ—196 cosine matrix and draw the top-K semantic matches. Then stress-test DINO v1's self-supervised [CLS] descriptor against live horizontal flip, center crops, grayscale, blur, and brightness shifts.

1. Initialise DINO v1 & Choose Photo Pair

Initialise DINO v1 ViT-S/16 above, then click any 14Γ—14 cell on Photo A to find its top-K matches in Photo B.

2. Interactive 196Γ—196 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 196Γ—196 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 Crop, Flip & Perturbation Invariance Lab

Measure how tightly Photo A's DINO v1 [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 β€” dino-core.mjs: computePatchCorrespondence() (196Γ—196 patch cosine + cycle check)
Show the code β€” dino-core.mjs: findMutualCorrespondences() (mutual nearest-neighbor pairs)