【发布时间】:2017-07-25 03:12:31
【问题描述】:
我正在尝试在 Caffe 中为三元组损失实现一个深度网络。 当我随机选择三个样本作为锚、正、负图像时,几乎产生零损失。于是我尝试了以下策略:
If I have 15,000 training images,
1. extract features of 15,000 images with the current weights.
2. calculate the triplet losses with all possible triplet combinations.
3. use the hard samples with n largest losses, and update the network n times.
4. iterate the above steps every k iterations to get new hard samples.
第 1 步很快,但我认为第 2 步非常耗时,效率非常低。所以,我想知道是否还有其他有效的硬数据采样策略。
谢谢。
【问题讨论】:
-
如果我没记错的话,描述三元组损失的论文有一个负挖掘方法——你应该看看。您是否考虑过使用Wexler at al. multibatch loss?
标签: neural-network deep-learning caffe conv-neural-network pycaffe