Giter VIP home page Giter VIP logo

cbam-tensorflow-slim's Issues

loss during training

Hello!I have a question: should I train my model until the loss becomes the end learning rate(0.0001)? If I stop training my model when the loss is 0.027, then my model will perform badly?

Any pretrained model?

Hello,
thank you for your code.
I am wondering if you can provide the pretrained model of the resnet_v2 with cbam attention model?
Thanks!!!

The position to add attention modules

Dear kobiso:

Thanks for your re-implementations of cbam-tensorflow-slim and SENet-tensorflow-slim.

However, I find that the position you add cbam block is different from the paper "CBAM: Convolutional Block Attention Module" for the inception-resnet-v2. The same situation also happens for the inception-resnet-v2 in SENet-tensorflow-slim.

From my point of view, in both papers, i.e., "CBAM: Convolutional Block Attention Module" and "Squeeze-and-Excitation Networks", the attention modules should be placed between the original blocks of the inception-resnet-v2. So for the inception-resnet-v2, code of adding cbam and SENet modules would be as:

net += scaled_up
if activation_fn:
net = activation_fn(net)
if cbam_block:
net=cbam_block(net, 'cbam_block')
if se_block:
net = se_block(net, 'se_block')
which means that the attention modules would be added after "net += scaled_up".

Also in the inception-resnet-v2 of cbam-tensorflow-slim, you add the attention module in the scaled_up branch as " scaled_up= cbam_block(scaled_up, 'cbam_block')" before "net += scaled_up", while in the the inception-resnet-v2 of SENet-tensorflow-slim, you add the attention module in the identity branch as " net = se_block(net, 'se_block')" before "net += scaled_up".

I don't know if you make these modifications because these modifications show better performance in your own re-implementations. Or, do I make mistakes in understanding the way of adding these two attention modules to the inception-resnet-v2?

Thank you again for your hard work.

All the best.

visualization

Can you share some code related to visualization。thank you

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.