Code Monkey home page Code Monkey logo

Comments (7)

hyojinie avatar hyojinie commented on June 30, 2024

To follow up with this, I ran it exactly the same way once again just to give another shot. Then it started working. Have you ever experienced such situation / know why this happens?

from pytorch-nin-cifar10.

jiecaoyu avatar jiecaoyu commented on June 30, 2024

@hyojinie Hi, can you try using a lower learning rate like 0.01? 0.1 sometimes works but sometimes not. It is related to the initialization.

You can easily change the learning rate by changing the line here.

from pytorch-nin-cifar10.

jiecaoyu avatar jiecaoyu commented on June 30, 2024

0.03 might be better if the training coverages successfully.

from pytorch-nin-cifar10.

hyojinie avatar hyojinie commented on June 30, 2024

Thanks a lot for your response. I recognize it is due to initialization as well. Would lowering learning rate still help when initialization is not favorable? My friends suggest using batch normalization to be less sensitive to the initialization. I might try that. Thanks a lot for the help.

from pytorch-nin-cifar10.

jiecaoyu avatar jiecaoyu commented on June 30, 2024

@hyojinie Yes, batch normalization should help a lot and the accuracy can be increased to around 91% (I cannot remember clearly but it should be around 91.3% something). For initialization which is not favorable, without batch normalization, a typical strategy is to use lower learning rate to "warm up" the training and then switch to a higher learning rate.

from pytorch-nin-cifar10.

hyojinie avatar hyojinie commented on June 30, 2024

Cool. Thanks a lot for the helpful insights.

from pytorch-nin-cifar10.

hyojinie avatar hyojinie commented on June 30, 2024

I wonder if 89.64% was achieved with learning rate 0.03? I tried it twice, but the accuracy was around 88% and 88.90% with batch normalization.

from pytorch-nin-cifar10.

Related Issues (7)

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.