layumi / Person-reID_GAN

ICCV2017 Unlabeled Samples Generated by GAN Improve the Person Re-identification Baseline in vitro
https://arxiv.org/abs/1701.07717
MIT License
320 stars 89 forks source link

LSRO Loss #2

Closed a462428 closed 6 years ago

a462428 commented 7 years ago

Hi there,

I am confused when I read the detailed code for proposed loss in https://github.com/layumi/Person-reID_GAN/blob/master/matlab/vl_nnloss.m#L291.

I don't know why "Part2 = (softmax result)-(1/K)?" in vl_nnloss.m#L298 (Am I rightly understand this code? )

Thx!

layumi commented 7 years ago

Hi, Thank you for using our code. We write a brief doc for the illustration. https://github.com/layumi/Person-reID_GAN/blob/master/support.pdf

a462428 commented 7 years ago

Thx for ur reply!