Wild ยท 196ร—196 Cross-Image Patch Correspondence & Invariance ยท 87.45 MB WASM q8

196ร—196 Patch Correspondence & 6-Transform Invariance Lab

Probe whether supervised ImageNet-21k pretraining builds spatially consistent 14ร—14 patch features: click any patch on Photo A to locate its top-K semantic matches on Photo B, trace mutual argmax arcs, and benchmark [CLS] vs Mean Patch cosine stability across 6 geometric & photometric transforms.

1. Cross-Image 14ร—14 Patch Correspondence

Drop an image onto this box to update Photo A, or paste from clipboard (Ctrl/โŒ˜+V).

Initialise ViT-Base IN21k above to compute 196ร—196 cross-image patch correspondence.

[CLS] Pair Cosโ€“
Best Patch Matchโ€“
Cycle Consistent?โ€“
Mutual Pairsโ€“
Pair Latencyโ€“
Tensor NaN Countโ€“

Photo A (Click or arrow-key a 14ร—14 query patch)

Query patch: โ€“

Photo B (Top-K semantic matches)

Best target match: โ€“

2. 6-Transform Geometric & Photometric Invariance Suite

Measure how strongly ViT-Base IN21k preserves Photo A's [CLS] and Mean Patch cosine similarity across horizontal flip, center crops, grayscale, Gaussian blur, and brightness shift.

ViT-Base IN21k Embedding Retention Across 6 Image Perturbations
Transform [CLS] Cosine Mean Patch Cos Latency NaN Count
Click "Run 6-Transform Invariance Suite" after model load.

Show the code

Show the code โ€” vit21k-core.mjs: computePatchCorrespondence() (196ร—196 cycle-consistent matching)