Giter Site home page Giter Site logo

grad-cam generation about gaze-attention HOT 4 OPEN

jpainam avatar jpainam commented on May 26, 2024
grad-cam generation

from gaze-attention.

Comments (4)

kylemin avatar kylemin commented on May 26, 2024

Thank you for your interest.

We used the PyTorch version of Grad-CAM++: link. Please refer to this repository.
We also noticed that there is a well-maintained library for various types of CAMs that you can refer to: link2

Thank you,
Kyle

from gaze-attention.

jpainam avatar jpainam commented on May 26, 2024

Thank you.
I was able to generate GradCAM for model_base using [https://github.com/1Konny/gradcam_plus_plus-pytorch](this link).
For model_gaze, register_backward_hook doesn't fire. But register_forward_hook does.
So, I don't have the gradients['value']

Is there any else I'm missing?

You have three submodel (model_base, model_gaze, model_attn), when you said you visualize the last convolutional layer
of our model. Which of the three models?

Thank you

from gaze-attention.

kylemin avatar kylemin commented on May 26, 2024

You can visualize the output after the last conv layer (Mixed_5c) of model_base. You do not need to use register_backward_hook for model_gaze because you are expected to register the hooks only for model_base

from gaze-attention.

jpainam avatar jpainam commented on May 26, 2024

Ok thank. you train three differents network, (I3D, I3D w/ gaze and I3D w/ gaze and attention).
You visualize the output of Mixed_5c for each network.

from gaze-attention.

Related Issues (10)

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.