One-Example-Person-ReID icon indicating copy to clipboard operation
One-Example-Person-ReID copied to clipboard

A question about Exclusive Loss

Open xiekun2019 opened this issue 4 years ago • 2 comments

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.

image

image

xiekun2019 avatar Dec 03 '20 13:12 xiekun2019

@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.

Yu-Wu avatar Dec 03 '20 14:12 Yu-Wu

That's it, I get it, thanks!

xiekun2019 avatar Dec 04 '20 01:12 xiekun2019