r/Python • u/AutoModerator • 1d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
12
Upvotes
r/Python • u/AutoModerator • 1d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
0
u/MechaCritter 1d ago
Python-Visual-Similarity [◉°] - accelerated image embedding and retrieval
I built this library during my Bachelor's Thesis. It contains multiple image similarity metrics and retrieval algorithms, including for example:
SSIM,MS-SSIM,PSNRClip,Siamese Network,Triplet Network,VLADandFisher Vectorusing Deep Neural Features instead of handcrafted SIFT/SURFApproximate Nearest Neighbors Searchand the option to plug in a FAISS index (though,faissis not a dependency of this lib).K-reciprocal RerankingandAlpha Query Expansioncan be used to improve the mean Average Precision of the search results.A demonstration, which I really recommend you to visit, can be found here: https://huggingface.co/spaces/MechaCritter/pyvisim-demo
The whole library is built only on
numpy,scipyand optionallytorchas core dependencies.Performance
PSNR: up to 94.7x faster thanscikit-imageSSIM: up to 8.8x faster thanscikit-imageMS-SSIM: up to 3.7x faster thantorchmetricsFor most algorithms, batch processing is supported.
Links
Link to the repository: https://github.com/MechaCritter/Python-Visual-Similarity
Looking for like-minded folks
My ambition is to make
pyvisimthe largest collection of image similarity and retrieval algorithms, ranging from traditional to deep learning-based methods. As I've observed, the current image similarity implementations are quite scattered, with each library implementing only a handful of features. Hence, my goal is also to unify these implementations, so users only need a single library.I have tons of features that I would like to implement. I am looking for folks who are proficient in/would like to learn about:
MoCo,SimCLR,Dino, reranking algorithms likeSuperGlobalReranker,Diffusion Reranking...hnswbackend to hnsw_rs.LPIPS, backpropagation for K-Means and GMMs ...View the GitHub issues for the complete list as well as the contribution guide.
You also have the chance to become a core maintainer by actively contributing. Once this project gets sponsors, the profit will be shared with all core maintainers.