KaiyangZhou / pytorch-center-loss

Pytorch implementation of Center Loss
MIT License
970 stars 219 forks source link

about the center loss #5

Open flexibility2 opened 5 years ago

flexibility2 commented 5 years ago

Hi, thanks for your source code. But I notice in the line: https://github.com/KaiyangZhou/pytorch-center-loss/blob/master/center_loss.py#L47 you wrote the center loss as the mean of dis, however, in the paper, the center loss is just the sum of the dis, so could you explain the reason? Thanks a lot

jenfung commented 4 years ago

Same confusion with you.