GithubHelp home page GithubHelp logo

About train_aug.txt about irn HOT 10 CLOSED

jiwoon-ahn avatar jiwoon-ahn commented on August 26, 2024
About train_aug.txt

from irn.

Comments (10)

zhaohui-yang avatar zhaohui-yang commented on August 26, 2024

In the make_cam.py file, https://github.com/jiwoon-ahn/irn/blob/master/step/make_cam.py#L42, why highres_cam and strided_cam use different unsqueeze dimension, for I think this doesn't make any difference?

from irn.

jiwoon-ahn avatar jiwoon-ahn commented on August 26, 2024

Hi @zhaohui-yang,

  1. It is common practice. Please refer to Sec 6.1. of the paper.
  2. Yes, they are the same.

from irn.

zhaohui-yang avatar zhaohui-yang commented on August 26, 2024

@jiwoon-ahn Thanks, you solved my questions. Besides, in the resnet50_cam.py, the x is detached after passing the layer2, which means the variable x would not BP the gradients. However, in the train_cam.py, the parameters in layer1 and layer2 are packed in the backbone (trainable_parameters), which are also included in the PolyOptimizer. I wonder if you update the parameters in layer1 and layer2, also the bn weight and bias?

from irn.

zhaohui-yang avatar zhaohui-yang commented on August 26, 2024

Will the mean shift introduce the gap between training and var? This layer inherits from BatchNorm2d. During training, x' = (x - mean)/std, however, during inference, x' = x - mean, which is different from training. What is the reason for the difference?

from irn.

jiwoon-ahn avatar jiwoon-ahn commented on August 26, 2024
  1. All parameters including the BatchNorms in layer1 and layer2 do not receive gradients, thus they are not updated.
  2. During training, MeanShift layer stores the moving average and returns the input itself. It means that the layer acts as an identity function, where the update of the moving average is simply achieved by calling BatchNorm.

from irn.

zhaohui-yang avatar zhaohui-yang commented on August 26, 2024

Thank u for your patience. By the way, is this the final version code? I have run this code for three times, which achieves 35.8, 36.0 and 36.2 mAP for instance segmentation (lower than 37.7 in Tab.1). The only thing I changed is I half the batch size while training the irn because of the GPU memory. So I wonder if this code would guarantee an mAP around 37.7 if I use larger batchsize?

from irn.

jiwoon-ahn avatar jiwoon-ahn commented on August 26, 2024

I have confirmed this code alone can reproduce the reported results. Please try with different hyper-parameters.

from irn.

zhaohui-yang avatar zhaohui-yang commented on August 26, 2024

Must be my problem. Thank you!

from irn.

zhaohui-yang avatar zhaohui-yang commented on August 26, 2024

@jiwoon-ahn What kind of GPU do you use? P100 or V100? For my Titan with 12G could not fit in the batchsize=32 for train_irn. I modified the code to fit for Parallel training, but encountered the same problem with issue #13 .

from irn.

jiwoon-ahn avatar jiwoon-ahn commented on August 26, 2024

@zhaohui-yang,
Please refer to this comment. #13 (comment)
Thanks.

from irn.

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.