GithubHelp home page GithubHelp logo

Comments (4)

lukas-blecher avatar lukas-blecher commented on May 12, 2024

Hi, thank you for your interest in the project.
I've had the same problem and I think it is because of the learning rate scheduler. I've created a discussion post here: #11
Restarting the training is not an optimal solution but it seems to work. As stated, maybe another scheduler is a better fit. Any ideas?

Also, I'm using config.yaml right now.

from latex-ocr.

Root970103 avatar Root970103 commented on May 12, 2024

Thanks for your reply. I have also been looking for possible reasons for this problem. I think both the optimizer and the lr scheduler may be the cause. So I will try to use different configs for the optimizer and the lr scheduler to find the optimal result.

And, are you currently using the method which manually stops and retrains with the previous model as a starting point?

from latex-ocr.

lukas-blecher avatar lukas-blecher commented on May 12, 2024

I'm interrupting the training after some time (I keep looking at the progress in wandb and if the loss stagnates I'm interrupting) and resume from the last saved checkpoint (It saves on Keyboardinterrupt after the first epoch).

python train.py --config path-to-checkpoints/model-name/config.yaml --resume

something like that.

from latex-ocr.

lukas-blecher avatar lukas-blecher commented on May 12, 2024

With the StepLR scheduler this does not happen anymore

from latex-ocr.

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.