Mic*_*ine 11 computer-vision neural-network gradient-descent deep-learning caffe
我正在尝试使用caffe来实现Schroff,Kalenichenko和Philbin"FaceNet:用于人脸识别和聚类的统一嵌入"中描述的三重态丢失,2015.
我是新手,所以如何计算反向传播的梯度?
Sha*_*hai 15
我假设您将损耗层定义为
layer {
name: "tripletLoss"
type: "TripletLoss"
bottom: "anchor"
bottom: "positive"
bottom: "negative"
...
}
Run Code Online (Sandbox Code Playgroud)
现在你需要计算每个"底部"的梯度.
原计算(我因感情原因离开这里......)
请参阅更正上一学期的评论.