{"id":16649088,"url":"https://github.com/fedden/tensorflowsiameseneuralnetwork","last_synced_at":"2025-03-12T12:15:44.896Z","repository":{"id":102074197,"uuid":"124458498","full_name":"fedden/TensorFlowSiameseNeuralNetwork","owner":"fedden","description":"Image Similarity Siamese Neural Network ","archived":false,"fork":false,"pushed_at":"2018-03-14T23:43:19.000Z","size":32207,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T05:47:49.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fedden.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-08T23:02:02.000Z","updated_at":"2020-11-05T13:35:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"d68efd00-0eba-4ef7-9c7c-e7b9895f200d","html_url":"https://github.com/fedden/TensorFlowSiameseNeuralNetwork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedden%2FTensorFlowSiameseNeuralNetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedden%2FTensorFlowSiameseNeuralNetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedden%2FTensorFlowSiameseNeuralNetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedden%2FTensorFlowSiameseNeuralNetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedden","download_url":"https://codeload.github.com/fedden/TensorFlowSiameseNeuralNetwork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213981,"owners_count":20254902,"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":[],"created_at":"2024-10-12T09:06:47.917Z","updated_at":"2025-03-12T12:15:44.869Z","avatar_url":"https://github.com/fedden.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Siamese Network Tensorflow\n\nSiamese network is a neural network that contain two or more identical subnetwork. The purpose of this network is to find the similarity or comparing the relationship between two comparable things. Unlike classification task that uses cross entropy as the loss function, siamese network usually uses contrastive loss or triplet loss.\n\nThis project follows Hadsell-et-al.'06 [1] by computing the Euclidean distance on the output of the shared network and by optimizing the contrastive loss (see paper for more details).\n\n[1] \"Dimensionality Reduction by Learning an Invariant Mapping\"\n    http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf\n\n## Run\nTrain the model\n```bash\ngit clone https://github.com/ardiya/siamesenetwork-tensorflow\npython train.py\n```\n\nTensorboard Visualization(After training)\n```bash\ntensorboard --logdir=train.log\n```\n\n## Image retrieval\nImage retrieval uses the trained model to extract the features and get the most similar image using cosine similarity.\n[See here](https://github.com/ardiya/siamesenetwork-tensorflow/blob/master/Similar%20image%20retrieval.ipynb \"See the code here\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedden%2Ftensorflowsiameseneuralnetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedden%2Ftensorflowsiameseneuralnetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedden%2Ftensorflowsiameseneuralnetwork/lists"}