r/Python • • Feb 17 '26

Discussion [ Removed by moderator ]

[removed] — view removed post

45 Upvotes

33 comments sorted by

View all comments

Show parent comment

1

u/hdw_coder Feb 18 '26

That’s an impressive pipeline — embedding-based similarity & interactive UI is a powerful approach.

What you’re building is more of a semantic similarity explorer, whereas my script focuses on deterministic duplicate detection with low false positives and automated keeper selection.

 Using DINOv3 + cosine similarity definitely increases recall across variation (especially for scanned images with slight crop/exposure differences), but at the cost of heavier compute and less deterministic grouping.

I really like the idea of persisting ‘not a match’ memory — that’s a very elegant human-in-the-loop refinement loop.

 Your orientation trick also makes sense for scans where (my current) EXIF orientation isn’t reliable.

In a way, our approaches solve different layers: Perceptual hashing looking for precise structural duplicates vs deep embeddings looking for semantic similarity exploration.

They actually combine nicely — you could first prune exact/near duplicates cheaply, then run DINO embeddings on the reduced set for semantic clustering.

Would definitely be interested to see your repo once published!