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

On the visualization of class activation diagrams #4

Closed
QuintinDong opened this issue Apr 15, 2024 · 5 comments
Closed

On the visualization of class activation diagrams #4

QuintinDong opened this issue Apr 15, 2024 · 5 comments

Comments

@QuintinDong
Copy link

Thanks to the authors for their work! May I ask what I should do if I want to save and visualize the class activation diagram as in your paper? I would be grateful for your answer.

@HUANGLIZI
Copy link
Owner

Please feel free to use the repo https://github.com/jacobgil/pytorch-grad-cam

@QuintinDong
Copy link
Author

Please feel free to use the repo https://github.com/jacobgil/pytorch-grad-cam
Thank you for your reply. I'm going to try it now!

@QuintinDong
Copy link
Author

Please feel free to use the repo https://github.com/jacobgil/pytorch-grad-cam

I tried it and still have some doubts. In cam you need to set the parameter of the corresponding layer, for example target_layers = [model.layer4[-1]]. May I ask how you set this up? I will be grateful if you can answer!

@HUANGLIZI
Copy link
Owner

You can check the setting in the paper. And we visualize both the encoder and decoder layers.

@QuintinDong
Copy link
Author

You can check the setting in the paper. And we visualize both the encoder and decoder layers.

Thank you for your reply. However, I have made many attempts and still have not been able to visualize the results in your paper. If it is convenient, could you send a copy of the code for the class activation graph visualization to my email? I will be grateful if it is possible! 我的邮箱是qcd2515427305@163.com

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