caffe-video_triplet
caffe-video_triplet copied to clipboard
triplet loss can't convergence,how can I do?
hi, I use your code to train triplet loss completely, but,I find the loss value can't convergence, it show that loss value=margin all the time when I train face image with your model,why? expect your reply,thank you very much!
Yes, I get the same result. The loss always equals around margin.
@DreamHorse0301 Hi, can I ask how you deal with this problem finally?
@sjtutsb @HAHA-DL HI, I also have this problem, how you deal with it?
I came across this issue, I don't know if you still need an answer but for future readers:
The loss=margin, mainly means that all the embeddings collapsed to one point. Hence, the similarity function is giving zero for your loss with no differentiating between positive and negative pairs, leaving the margin only the non-zero term in the loss equation.
a general tip would be to decrease the learning rate so the networks are more prone to collapse.