项目作者: suraj-maniyar

项目描述 :
Digit classification using Siamese CNN.
高级语言: Python
项目地址: git://github.com/suraj-maniyar/Siamese-CNN-MNIST.git
创建时间: 2019-05-16T21:00:29Z
项目社区:https://github.com/suraj-maniyar/Siamese-CNN-MNIST

开源协议:

下载


Siamese-CNN-MNIST

Digit classification using Siamese CNN.

Theory:

Contrastive Loss is often used in image retrieval tasks to learn discriminative features for images. During training, an image pair is fed into the model with their ground truth relationship equals 1 if the two images are similar and 0 otherwise.
The margin term is used to “tighten” the constraint: if two images in a pair are dissimilar, then their distance shoud be at least margin, or a loss will be incurred.
Y = 1 if images are different else Y = 0 if the images belong to the same class.

Results:

Results for Classification Model:





Results for Siamese Model:



Few images showing Dissimilarity score:







References: