Giter Club home page Giter Club logo

Comments (10)

zhreshold avatar zhreshold commented on August 19, 2024 1

you can set lr_mult of batchnorm beta term to 0 to fix the beta, which is initialized as 0.

from mxnet-ssd.

zhreshold avatar zhreshold commented on August 19, 2024 1

@titikid You can leave gamma unfixed or not, depending your result, but I would prefer leave it free.

from mxnet-ssd.

ndcuong91 avatar ndcuong91 commented on August 19, 2024

Thanks @zhreshold , it worked!

from mxnet-ssd.

ndcuong91 avatar ndcuong91 commented on August 19, 2024

@zhreshold is this also fix 'gamma' term?
Should i remove 'fix_gamma=True' in bn layer?

from mxnet-ssd.

ndcuong91 avatar ndcuong91 commented on August 19, 2024

I already trained 2 models from scratch, all parameters is set as default (lr=0.004, batch=48, single gpu)

  • model with fixed beta (only in base mobilenet network) and gamma: ~41.5% mAP after 220 epoches. Train log here
  • model with fixed beta (only in base mobilenet network): ~42% mAP after 220 epoches. Train log here
    @zhreshold Can you take a look and give me some tips for better mAP? should i train with bigger dataset first and fine-tune in voc2007/2012?

from mxnet-ssd.

zhreshold avatar zhreshold commented on August 19, 2024

you have to use ImageNet pre-trained weights, otherwise you need a DSSD variant.

from mxnet-ssd.

ndcuong91 avatar ndcuong91 commented on August 19, 2024

Hi @zhreshold
I found that if i remove "beta" term only, the convolution still has a small shift factor because the impact of "running_mean" term. i set "lr_mult" of "running_mean" term to 0 but i still see it updated during training. So, how can i completely remove it?

from mxnet-ssd.

ndcuong91 avatar ndcuong91 commented on August 19, 2024

@zhreshold can you give me some suggestion?

from mxnet-ssd.

zhreshold avatar zhreshold commented on August 19, 2024

@titikid For maximum flexibility I suggest you to use broadcast multiply instead of batchnorm itself. You have full control of how the behavior is without hacking batchnorm itself.

from mxnet-ssd.

ndcuong91 avatar ndcuong91 commented on August 19, 2024

@zhreshold i'm not really clear what do you mean for now, but i will investigate it. Thanks!

from mxnet-ssd.

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.