facenet icon indicating copy to clipboard operation
facenet copied to clipboard

Why can embedding be splited into anchor、positive、negative?

Open JasonChenhx opened this issue 4 years ago • 1 comments

I can't understand the principle of why can embedding be splited into anchor、positive、negative? I know the embedding is from the network, but I want to know the structure of the data set. Thanks.

JasonChenhx avatar Mar 31 '20 08:03 JasonChenhx

Hi, @JasonChenhx , I saw that in file train_tripletloss.py, line 271, Author implemented function select_triplets, which split embeddings into anchor, positive, and negative. From the code, I guest the structure of embeddings are [A_embed1, A_embed2, ..., A_embedN, B_embed1, B_embed2, ...., B_embedM, C_embed1, C_embed2, ... C_embedL].

VuHuy-cse-9 avatar Aug 05 '22 01:08 VuHuy-cse-9