GithubHelp home page GithubHelp logo

Comments (3)

xiaoboCASIA avatar xiaoboCASIA commented on May 23, 2024

I also have the same problem on cifar10, the loss will explode after some (about 12000) iterations.

from largemargin_softmax_loss.

wy1iu avatar wy1iu commented on May 23, 2024

The prototxt actually works fine in my PC. In general, L-Softmax loss is indeed a little bit difficult to optimize since it defines a more difficult task than Softmax loss. However, the training prototxt file I provide is simply an example of how to use L-Softmax loss. If your network diverges, you should consider to change the parameters such as base, gamma, power, etc. to make lambda decrease more smoothly. There are more than one set of parameters that could achieve the performance in the paper. The last thing you can do if your network still diverges is to assign a small positive value to lambda_min, say 0.5. (it is a very rare case that you need to change lambda_min for CIFAR 10.) Also note that, you should use m=4 in L-Softmax loss if you want to reproduce the reported performance, while in the CIFAR10 example prototxt, m is set to 2. Thanks for these feedbacks.

from largemargin_softmax_loss.

wy1iu avatar wy1iu commented on May 23, 2024

BTW, I just fix a bug about lambda_min. You guys should use the new version.

from largemargin_softmax_loss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.