Groups
Sign in
Groups
Caffe Users
Conversations
Labels
About
Send feedback
Help
Contrastive Loss outputs negative loss values
146 views
caffe
error
forward_pass
layer
loss
problem
siamese
train
training
Skip to first unread message
Tamar Elazari
unread,
Apr 26, 2016, 5:18:53 AM
4/26/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Caffe Users
Hi all,
It seems I have a problem with the Contrastive Loss layer, it outputs negative values in training.
I0426 12:05:25.999092 26389 solver.cpp:222] Iteration 900, loss = -0.015
this is my layer:
layer {
name: "loss"
type: "ContrastiveLoss"
bottom: "feat"
bottom: "feat_p"
bottom: "sim_labels"
top: "loss"
contrastive_loss_param {
margin: 1
}
}
what am I doing wrong?
* the problem is also described here
https://github.com/BVLC/caffe/issues/2308
and later here
https://github.com/BVLC/caffe/pull/2321
but it doesn't seem to be fixed, since i am getting negative values...
Reply all
Reply to author
Forward
0 new messages