Coder Social home page Coder Social logo

Comments (2)

Wuziyi616 avatar Wuziyi616 commented on September 17, 2024

Hi! Thank you for your attention to our work. Actually we discovered in our experiments that, large learning rate is very important for training binary detectors. And we guess it's because large lr can avoid local minima for the binary neural network. In addition, if you use large lr, you need to use a large batch size to stabilize the training of the network. This might be why your loss goes to NaN when using batch_size=16 and lr=1e-3.

I also tried lr=1e-4 with batch_size=32 before, indeed the training process is more stable, but the performance is bad. If I remember correctly, we achieved ~60% mAP on VOC using this lr scheduler (lr starts from 1e-4 and decay to 1e-5 and 1e-6 when the loss stops decreasing).

So, from my perspective, I recommend you to use multiple GPUs to train on batch_size=32, because large initial lr is very important if you want to get good performance. If you can't find a way to train on large batch_size, maybe you can use some tricks like lr warmup to stabilize the early stage of training. But I'm sure whether the mAP will be as good as reported in our paper.

from bidet.

hadhe145 avatar hadhe145 commented on September 17, 2024

Thank you very much for your explanation, I will try again!

from bidet.

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.