Code Monkey home page Code Monkey logo

Comments (7)

chenyuntc avatar chenyuntc commented on May 19, 2024

I think maybe resnet101 is difficult to train.

This maybe helpful.

For Resnets, we fix the first block (total 4) when fine-tuning the network, and only use crop_and_resize to resize the RoIs (7x7) without max-pool (which Xinlei finds useless especially for COCO). The final feature maps are average-pooled for classification and regression. All batch normalization parameters are fixed. Learning rate for biases is not doubled.

from simple-faster-rcnn-pytorch.

twtygqyy avatar twtygqyy commented on May 19, 2024

@chenyuntc Thanks, I also fixed the weights for top layers, but the result didn't improve. As you mentioned, it might be the reason of BN and biases. I'll have another try.

from simple-faster-rcnn-pytorch.

twtygqyy avatar twtygqyy commented on May 19, 2024

Hi @chenyuntc, I've trained the model with:

  1. Fix the first block.
  2. Learning rate for biases is not doubled.
  3. All batch normalization parameters are fixed.
  4. Use 1e-4 as weight decay.

And I restrictedly followed the way of training as I did in caffe, while it seems the performance cannot be improved.
Have you tried to train the model on networks other than VGG16?

from simple-faster-rcnn-pytorch.

chenyuntc avatar chenyuntc commented on May 19, 2024

Actually, I only tried VGG16.

from simple-faster-rcnn-pytorch.

blateyang avatar blateyang commented on May 19, 2024

I recently also want to implement resnet structure based on this project. And I found your @twtygqyy codes are very helpful to me. But I have a question about batch normalization. Why we need to fix batch normalization parameters here?

from simple-faster-rcnn-pytorch.

stickOverCarrot avatar stickOverCarrot commented on May 19, 2024

@blateyang BN only work when batch_size>1 and only work well when batch_size>=16.You can see this paper https://arxiv.org/abs/2002.05712.However,@chenyuntc code only surport batch_size==1

from simple-faster-rcnn-pytorch.

blateyang avatar blateyang commented on May 19, 2024

from simple-faster-rcnn-pytorch.

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.