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

how to create the Grad-CAM of this TPRO model? #5

Open
Beliefzp opened this issue Mar 13, 2024 · 2 comments
Open

how to create the Grad-CAM of this TPRO model? #5

Beliefzp opened this issue Mar 13, 2024 · 2 comments

Comments

@Beliefzp
Copy link

Now I want to create the Grad-CAM of this model, like the figure 1 in your TPRO paper. But I don't know which layer to choose to create the Grad-CAM. Could you tell me how to create the activation map like figure 1?

thanck you very much.

@zhangst431
Copy link
Owner

Hello,

In our work, we did not extract Grad-CAM for the TPRO model. The class activation maps displayed in the Introduction section are obtained by weighting cam2, cam3, and cam4 from the model's forward function.

Regarding the approach of directly utilizing feature maps in models structured as feature map -> GAP -> cls_pred, you might find the following paper insightful:
Li R, Mai Z, Zhang Z, et al. Transcam: Transformer attention-based cam refinement for weakly supervised semantic segmentation. Journal of Visual Communication and Image Representation, 2023, 92: 103800.

@Beliefzp
Copy link
Author

OK,thank you very much.

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

2 participants