Coder Social home page Coder Social logo

Comments (2)

nabsabraham avatar nabsabraham commented on August 16, 2024

Hi, thanks for the interest in our work. Since this is segmentation, the "CAM" can be thought of as the feature map activations at any layer. Since in gradCAM and CAM, they take the last layer before things like batchnorm or dropout, I would suggest taking q_attn_conv as the CAM layer. But you could also take the output of something like attn1 in the model and pool those features in the feature dimension. For example, the output of attn1 would be something like 128 * height * width. You could average out the 128 to get a map that is just height * width and that could be your CAM. Hope this helps! Oktay et al is the paper that originally proposed these attention Gates and they might have a way to generate them in their code repo.

from focal-tversky-unet.

shanhuhaifeng avatar shanhuhaifeng commented on August 16, 2024

Hi, I was so happy and surprised to receive your reply so soon. Thank you so much for your detailed explaination to my problem, and your suggestion is also useful for me and other learners with similar question. Thus, i also suggest other learners to read the paper 'A NOVEL FOCAL TVERSKY LOSS FUNCTION WITH IMPROVED ATTENTION U-NET FOR LESION SEGMENTATION'.

from focal-tversky-unet.

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.