资源算法Keras-MNIST-center-loss-with-visualization

Keras-MNIST-center-loss-with-visualization

2020-04-03 | |  30 |   0 |   0

Keras-MNIST-center-loss-with-visualization

图片.png

Fig. (left) Softmax only. (right) Softmax with center loss

Update (2018/03/02)

Update (2017/11/10)

  • Remove the one-hot inputs for Embedding layer and replace it by single value labels.

  • There are two kinds labels: single value for center loss, and one-hot vector labels for softmax term.

  • Every classes are visually seperated now :)

How to run?

  • Step.1 Change the flag of center loss inside TYY_mnist.py

isCenterloss = True
#isCenterloss = False
  • Step.2 Run the file

KERAS_BACKEND=tensorflow python TYY_mnist.py

Dependencies

  • Anaconda

  • Keras

  • Tensorflow

  • Others: (install with anaconda)

conda install -c anaconda scikit-learn 
conda install -c conda-forge matplotlib

References:


上一篇:CenterLoss_Caffe_Mnist

下一篇:mxnet-center-loss

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...