Downloads · 30 days
10
2% of all-time downloads
keras-io/siamese-contrastive
siamese-contrastive is a machine learning model from keras-io. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tf-keras.
This repo contains the model for the notebook Image similarity estimation using a Siamese Network with a contrastive loss.
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
543
Public
Repo size
448 KB
Likes
5
Public
Click a slice to open those files.
.pb378 KB · 79%
From the Hugging Face model README
This repo contains the model for the notebook Image similarity estimation using a Siamese Network with a contrastive loss.
Full credits go to Mehdi
Reproduced by Rushi Chaudhari
Siamese Networks are neural networks which share weights between two or more sister networks, each producing embedding vectors of its respective inputs.
In supervised similarity learning, the networks are then trained to maximize the contrast (distance) between embeddings of inputs of different classes, while minimizing the distance between embeddings of similar classes, resulting in embedding spaces that reflect the class segmentation of the training inputs.
MNIST dataset of handwritten digits
The following hyperparameters were used during training:
epochs = 10
batch_size = 16
margin = 1

