One-Example-Person-ReID
One-Example-Person-ReID copied to clipboard
A question about Exclusive Loss
Sorry for disturbing you. When I read the code about the Exclusive Loss, I found that Exclusive Loss in the “forward“ function uses targets labels. However, in the paper, the Exclusive Loss doesn't need labels to training.
@xiekun2019
Hi, the target is exactly the index i in the paper. It is used to figure out the i-th vector as indicated in the numerator.
We do not use any ID labels here.
Since we implement the exclusive loss using the cross entropy function, it would be better if you can have a look at the cross entropy function.
That's it, I get it, thanks!