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

about visualization on attention maps #17

Closed
amiltonwong opened this issue Oct 10, 2019 · 2 comments
Closed

about visualization on attention maps #17

amiltonwong opened this issue Oct 10, 2019 · 2 comments

Comments

@amiltonwong
Copy link

amiltonwong commented Oct 10, 2019

Hi, @XiaLiPKU ,

Could you also provide the code for visualizing on attention maps, like the responses Z in Fig.5?

THX!

@XiaLiPKU
Copy link
Owner

cv2.imwrite(z[0, 0].cpu().numpy().reshape(h, w))

@zhudahui
Copy link

@amiltonwong
Did you succeed?
valueError: cannot reshape array of size 64 into shapec(43,26)
thanks

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