Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for Grad-CAM visualization #23

Open
qiaomu-miao opened this issue Nov 10, 2022 · 2 comments
Open

Code for Grad-CAM visualization #23

qiaomu-miao opened this issue Nov 10, 2022 · 2 comments

Comments

@qiaomu-miao
Copy link

Hi,

Thanks for the great work.

In Figure 3 of your paper, you showed the Grad-CAM visualizations of your model on RefCOCO+ from text descriptions. Could you share the code for using Grad-CAM on your model?

Thanks!

@fizahkhalid
Copy link

Have you figured out how to generate the heatmaps?

I tried using torchcam, but I'm only getting a point and not a 2D grid for the activate map.

@zengyan-97
Copy link
Owner

Hi,
I have not used grad-cam for a long time.
You can refer to this code: https://github.com/salesforce/ALBEF/blob/main/visualization.ipynb for grad-cam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants