-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backpropagation for training Siamese nets #1265
Comments
Sorry for this misunderstanding. The gradients descent method in [ref2] is actually the same as the one implemented for training Siamese nets. |
The ContrastiveLossLayer in Caffe is suitable for training siamese networks. If an alternative gradient computation is used in [2], you will need to implement it. |
Have you implement Discriminative Deep Metric Learning for Face Verification in the Wild? I try to implement it but I can not achieve the performance of the paper. |
Practically, the model proposed in Discriminative Deep Metric Learning for 2015-06-19 11:23 GMT+08:00 nansea notifications@github.com:
|
@YangXS Hi,I also use Caffe to train the Siamese network for my task, but it seems not converge to a good result, can you help me? |
@anxiaoxi45, Could you give more details about your task ? I really spend lots of time to make it work. |
@YangXS Could you provide the model parameters (no of nodes in each of the layers ) which achieves the results (for LBP features for deep and shallow network ) in Discriminative Deep Metric Learning for Face Verification in the Wild (DDML)? And did you normalise the data, if so how. |
I find that for training Siamese nets[ref1], a contrastive loss layer was added. No extra code was added for backpropagation in other layers. Is that right? However, according to [ref2] where a similar net was proposed for metric learning, the backpropagation of other layers should also be revised. At least the subtraction of each layer's outputs of the input pair should be added to compute the gradient w.r.t the wieght and bias. If I missed the revision of backpropagation, please help me. Thanks.
[ref1] Sumit Chopra, Raia Hadsell, Yann LeCun. Learning a Similarity Measure Discriminatively with Applications to Face Verification. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), San Diego CA, June 2005.
[ref2] Junlin Hu, Jiwen Lu, Yap-Peng Tan. Discriminative Deep Metric Learning for Face Verification in the Wild. IEEE International Conference on Computer Vision and Pattern Recognition (CVPR), 2014
The text was updated successfully, but these errors were encountered: