提交 92cdbe6f 编写于 作者: H HydrogenSulfate

add ref for emlloss

上级 645a125c
......@@ -23,6 +23,11 @@ from .comfunc import rerange_index
class EmlLoss(paddle.nn.Layer):
"""Ensemble Metric Learning Loss
paper: [Large Scale Strongly Supervised Ensemble Metric Learning, with Applications to Face Verification and Retrieval](https://arxiv.org/pdf/1212.6094.pdf)
code reference: https://github.com/PaddlePaddle/models/blob/develop/PaddleCV/metric_learning/losses/emlloss.py
"""
def __init__(self, batch_size=40, samples_each_class=2):
super(EmlLoss, self).__init__()
assert (batch_size % samples_each_class == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册