{"id":14959083,"url":"https://github.com/agrover112/siamesenet-search","last_synced_at":"2025-10-12T04:12:20.156Z","repository":{"id":112708267,"uuid":"316079944","full_name":"Agrover112/SiameseNet-Search","owner":"Agrover112","description":"MNIST digits image similarity search by Indexing with Annoy and using trained embeddings from a Siamese Net with Triplet Loss .","archived":false,"fork":false,"pushed_at":"2022-02-13T16:11:45.000Z","size":632,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T20:23:42.218Z","etag":null,"topics":["annoy","image-similarity","indexing","mnist","siamese-architecture","siamese-network","siamese-neural-network","similarity-search","tensorflow-examples","tensorflow2"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Agrover112.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-11-25T23:57:24.000Z","updated_at":"2025-01-09T23:21:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"c819fcfc-e746-4b2f-8319-3f621b5fa1ac","html_url":"https://github.com/Agrover112/SiameseNet-Search","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"cf8535f1f9bad92893ec9599e01bf174037506e3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agrover112%2FSiameseNet-Search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agrover112%2FSiameseNet-Search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agrover112%2FSiameseNet-Search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agrover112%2FSiameseNet-Search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agrover112","download_url":"https://codeload.github.com/Agrover112/SiameseNet-Search/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237999529,"owners_count":19399901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["annoy","image-similarity","indexing","mnist","siamese-architecture","siamese-network","siamese-neural-network","similarity-search","tensorflow-examples","tensorflow2"],"created_at":"2024-09-24T13:18:49.094Z","updated_at":"2025-10-12T04:12:15.120Z","avatar_url":"https://github.com/Agrover112.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SiameseNet-Search\nSearch can be performed in various ways and using various architectures. In the following repository embeddings are created by using  an non-cnn **base embedding model** which is tuned using a *Siamese Neural Net*  with *Triplet Loss* inspired from [F. Schroff, D. Kalenichenko and J. Philbin, \"FaceNet: A unified embedding for face recognition and clustering,\" 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, 2015, pp. 815-823.  ](https://arxiv.org/pdf/1503.03832.pdf) paper from Google , on **10K MNIST digits** images from train-set.The trained model is used to create embeddings for *entire* train-set and then Indexed using [Approx Nearest Neighbours](https://github.com/spotify/annoy) being faster than K-NN.\nMore like a prototype.\n\n### Embedding Space Visualized\nPCA used for visualizing the embedding space of **10K images** of different classes.\n![](https://github.com/Agrover112/SiameseNet-Search/blob/main/download.png)\n## References\n- https://arxiv.org/pdf/1503.03832.pdf\n- http://www.cs.cmu.edu/~rsalakhu/papers/oneshot1.pdf\n- http://yann.lecun.com/exdb/mnist/\n- http://cseweb.ucsd.edu/~dasgupta/papers/rptree-stoc.pdf\n- https://github.com/spotify/annoy\n- https://github.com/PotatoSpudowski/S.I.D.E\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrover112%2Fsiamesenet-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrover112%2Fsiamesenet-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrover112%2Fsiamesenet-search/lists"}