Giter Site home page Giter Site logo

Comments (3)

chenf99 avatar chenf99 commented on May 17, 2024

In instruction you decayed the learning rate by 90% when the validation loss stopped improving for long periods, so how many epochs should I wait for this long periods? @sgrvinod

from a-pytorch-tutorial-to-object-detection.

sgrvinod avatar sgrvinod commented on May 17, 2024

Hi @chenf99, are you using the same datasets that I used? The parameters are the same as in the paper, except for the batch size. I trained using a batch size of 8, but for the same number of epochs as in the paper.

I think I waited around 15 epochs to see if the loss improved before early-stopping. But I realize that this just complicates the training. So I removed the early-stopping/validation and simply followed the procedure in the paper. (A learning rate of 1e-3 for N epochs, 1e-4 for M epochs, 1e-5 for M epochs. N, M are the number of epochs corresponding to 80k, 20k iterations respectively at the paper's batch size of 32.) This also slightly improved my mAP (from 77.1 to 77.2), so I guess it's just simpler and better to not do any early-stopping/validation and to simply follow the above schedule. I have now updated the code and tutorial to reflect this.

I don't know why you are getting a loss of 3.5 though. You could run eval.py to check what your mAP is, since loss can be measured differently. Also, there have been some breaking changes since PyTorch version 0.4, so did you solve those?

from a-pytorch-tutorial-to-object-detection.

chenf99 avatar chenf99 commented on May 17, 2024

@sgrvinod Thank you for your reply, I tried again and I can get good result this time.

from a-pytorch-tutorial-to-object-detection.

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.