caffe-video_triplet icon indicating copy to clipboard operation
caffe-video_triplet copied to clipboard

triplet loss can't convergence,how can I do?

Open sjtutsb opened this issue 7 years ago • 4 comments

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!

sjtutsb avatar Mar 10 '17 15:03 sjtutsb

Yes, I get the same result. The loss always equals around margin.

leon-liangwu avatar Apr 19 '17 06:04 leon-liangwu

@DreamHorse0301 Hi, can I ask how you deal with this problem finally?

HAHA-DL avatar Feb 08 '18 15:02 HAHA-DL

@sjtutsb @HAHA-DL HI, I also have this problem, how you deal with it?

poirotZ avatar Jul 21 '18 08:07 poirotZ

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.

AhmedAbdel-Aal avatar Dec 14 '20 18:12 AhmedAbdel-Aal