Giter Club home page Giter Club logo

Comments (2)

mrT23 avatar mrT23 commented on July 18, 2024

The answer is a bit tricky.
some initial assumptions:

  1. transformed are harder to train than conv nets, and are more sensitive to hyperparameters (including lr)
  2. there is a major difference in the optimal learning rate when you train a network from scratch, compared to when you fine-tune it from a previous pretraining.
  3. if you don't have a lots (!) of GPU resources, hard to do hyperparameters tuning and searching on imagenet 21K.

given 1-3, the scheme I suggested in the article is to initially train a net on imagenet1K, and then transfer it to imagenet21K for 80 epochs. Since this is transfer learning, I used regular adam with lr=3e-4. i believe that this scheme is quite robust, on TResNet-m i trained with a large batch (4168). with ViT the batch was smaller (648).

you can try other learning rates, I think a reasonable range for adam optimizer is 2e-4 to 5e-4.
DeiT paper talks about training from scratch, which is different. notice that they suggest 1000 epochs !

from imagenet21k.

Yuzz1020 avatar Yuzz1020 commented on July 18, 2024

Thank you for the fast response! I'll try with the lr you suggested.

from imagenet21k.

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.