use case · practical · 768-d visual deduplication & cluster search · Apache-2.0

Multi-Photo 768-d Visual Deduplication & Cluster Search

Index a curated starter album — plus multiple uploaded, dropped, or pasted photos — into 768-d DINOv2-Base [CLS] vectors sequentially off the main thread. Click any photo to rank cosine nearest neighbors, adjust the duplicate cluster slider live, cancel mid-batch cleanly, and export formula-safe CSV or JSON.

1. Initialise DINOv2-Base & Index the Album

Initialise DINOv2-Base 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.72)

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 768-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 — dinov2-core.mjs: clusterNearDuplicates() (single-linkage cosine clustering)
Show the code — dinov2-core.mjs: buildSimilarityMatrixCsv() (formula-safe RFC 4180 CSV export)