Questions tagged [siamese-neural-network]

Use for questions on A Siamese neural networks, sometimes called twin neural networks.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Save the Embeddings Model from a Complete Triplet Loss Network

I am working on a Siamese Neural Network with custom Triplet Loss function. As far as I learned from the documentations, we will train a complete network but we want to save only the CNN that is used ...
0
votes
0answers
13 views

Metric Learning with l2 distance and contrastive loss is not working

I am trying metric learning with L2 distance and contrastive loss with a pre-trained language transformer as an embedding extractor. I ran my model for 20 epochs, and the loss is decreasing. But when ...
0
votes
0answers
15 views

Monotonically increasing Siamese neural network

I want to design a Siamese neural network for which there are n inputs which are all positive and there is one output which is also positive. How can I enforce the condition that the input/output ...
0
votes
0answers
11 views

Should I L-2 Normalise outputs in Siamese Neural Neural Network for distance computation for Triplet Loss or not?

I am building a Siamese Neural Network for Images (CNN) which uses the FaceNet's Triplet Loss as its loss function. I found a good Implementation here where we build a model and the outputs from the ...
0
votes
0answers
19 views

Can a siamese neural network distinguish expected from unexpected changes?

Please redirect me to another stack exchange if this isn't the appropriate forum. I am interested in finding a neural network architecture that can detect distance between two inputs. As an example, ...
0
votes
0answers
11 views

To find the accuracy between two patterns by comparing the similarity socre

I have faced problem with finding the similarity scores between two patterns. For example, I have normal ECG pattern and abnormal ECG pattern . Then I want to get find the accuracy of normal pattern ...
0
votes
0answers
17 views

Why does self-supervised representation learning (such as SimpleSiam) use a ResNet encoder that is trained in a supervised fashion?

Can anybody explain to me why does self-supervised representation learning on images using Siamese neural networks (such as SimpleSiam (https://arxiv.org/abs/2011.10566), SimCLR, Boyl) use a ResNet ...
0
votes
0answers
26 views

Why is my siamese network learning very well in e.g. 1 out of every 5 runs?

Why is my siamese network learning very well in e.g. 1 out of every 5 runs? The rest of the time it's not learning and maintains an accuracy of 0.5. Any explanations? Is the contrastive loss taken in ...
0
votes
0answers
23 views

Should I use the Siamese or the matching network to find the closest match between one image and other images?

I have to find the closest match between my image and a bunch of already collected images of different classes in the folder. Which of the meta-learning approach should I select? I am thinking about ...
1
vote
0answers
29 views

How do gradients are flown back into the Siamese network when branching is done?

I am curious about the working of a Siamese network. So, let us suppose I am using a triplet loss for my network and I have instantiated single CNN 3 times and there are 3 inputs to the network. So, ...
1
vote
0answers
22 views

On learning to rank tasks. Could it be that the input of the Siamese network is a vector, or should it be exclusively raw text?

I'm developing a method to document and query representation as concept vectors (bag-of-concepts). I want to train a machine learning model on ranking (learning to rank a task). So I have document ...
0
votes
0answers
15 views

Does a Siamese Network need other trainable layers after the distance layer?

I'm approaching at Siamese Networks in order to use them for Image Similarity. I found that many people use famous models like VGG or ResNet to build the vectors that will go on the distance layer in ...