Gradient calculation for softmax version of triplet loss

前端 未结 2 596
终归单人心
终归单人心 2021-01-15 15:19

I have been trying to implement the softmax version of the triplet loss in Caffe described in
Hoffer and Ailon, Deep Metric Learning Using Triplet Network, ICLR 2015.

2条回答
  •  无人共我
    2021-01-15 16:02

    This is a math question, but here it goes. The first equation is what you're used to, and the second is what you do when it's not squared.

提交回复
热议问题