Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

triplet loss labels #8

Open
He-haitao opened this issue Oct 19, 2019 · 1 comment
Open

triplet loss labels #8

He-haitao opened this issue Oct 19, 2019 · 1 comment

Comments

@He-haitao
Copy link

比如我给了labels 如下 (1,1,0)
那么batch size为3,这里有一个符合条件的标签信息对吧,然后输入的embeddings对应这个labels,但是就是之前要获得3D mask,那个地方的什么得到一个3D的mask [a, p, n], 对应triplet(a, p, n)是valid的位置是True还是没懂,有的地方是false,有的地方是true,这个位置不一样,有什么关联么?可不可以麻烦您,结合一个小例子指导一下呀?

@sugar2019
Copy link

按照维度找到三元组的对,比如你的例子里面,只有(1,2,3)(2,1,3)这两个位置为True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants