• Stars
    star
    251
  • Rank 160,955 (Top 4 %)
  • Language
    Python
  • Created about 6 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PyTorch code for softmax variants: center loss, cosface loss, large-margin gaussian mixture, COCOLoss, ring loss

softmax_variants

Various loss functions for softmax variants: center loss, cosface loss, large-margin gaussian mixture, COCOLoss implemented by pytorch 0.3.1

the training dataset is MNIST

You can directly run code train_mnist_xxx.py to reproduce the result

The reference papers are as follow:

Center loss: Yandong Wen, Kaipeng Zhang, Zhifeng Li and Yu Qiao. A Discriminative Feature Learning Approach for Deep Face Recognition. ECCV 2016

Cosface loss: Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou,Zhifeng Li, and Wei Liu. CosFace: Large Margin Cosine Loss for Deep Face Recognition. CVPR2018

Large-margin gaussian mixture loss: Weitao Wan, Yuanyi Zhong,Tianpeng Li, Jiansheng Chen. Rethinking Feature Distribution for Loss Functions in Image Classification. CVPR 2018

COSO loss: Yu Liu, Hongyang Li, Xiaogang Wang. Rethinking Feature Discrimination and Polymerization for Large scale recognition. NIPS workshop 2017

The learned 2-d embedding features are:

softmax loss

image

COCO loss

image

Center loss

image

CosFace loss

image

Large-margin gaussian mixture loss

image