Learn to measure similarity between pairs of images using convolutional encoders
Siamese networks learn to measure similarity between inputs by processing both through identical convolutional encoder networks, then comparing the resulting embeddings.
This example uses Conv2d layers to extract spatial features from MNIST digits. Green border = same digit, Red border = different.