use case · practical · visual similarity & near-duplicate finder · Apache-2.0

Multi-Photo Visual Similarity & Near-Duplicate Finder

Index a curated starter album — plus multiple uploaded or dropped photos — into 384-d DINO v1 [CLS] embeddings sequentially off the main thread. Click any photo to rank the album by cosine similarity, adjust the near-duplicate cluster slider live, cancel mid-batch cleanly, and export formula-safe CSV or JSON.

1. Initialise DINO v1 & Index the Album

Initialise DINO v1 ViT-S/16 above, then click Index Album or upload your own photos.

Indexed Photos0 / 10
Mean Latency–
Duplicate Clusters–
Top Match Cosine–
Batch NaN Count–

2. Cosine Ranking & Near-Duplicate Clusters

Nearest Neighbors

Index the album, then click any thumbnail above to rank the rest of the album.

Near-Duplicate Clusters (Threshold ≥ 0.70)

Single-linkage connected components over pairwise cosine similarity — drag the threshold slider with zero re-inference.

Index at least 2 photos to cluster near-duplicates.

3. Pairwise 384-d Cosine Similarity Matrix

Pairwise cosine similarity across all indexed album photos
Index at least 2 photos to render the pairwise similarity matrix.

Show the code

Show the code — dino-core.mjs: clusterNearDuplicates() (single-linkage cosine clustering)
Show the code — dino-core.mjs: buildSimilarityMatrixCsv() (formula-safe RFC 4180 CSV export)