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 do Visualization? #8

Closed
aswa123 opened this issue Nov 23, 2021 · 1 comment
Closed

How to do Visualization? #8

aswa123 opened this issue Nov 23, 2021 · 1 comment

Comments

@aswa123
Copy link

aswa123 commented Nov 23, 2021

No description provided.

@liuch37
Copy link
Owner

liuch37 commented Mar 10, 2022

You can refer to inference.py. There is code to generate attention map for visualization, if that is what you mean by visualization.

# generate attention heatmap
heatmaps, overlayed_images = attention_map(predict_word, x[idx], att_weights[idx,:,:,:,:])

@liuch37 liuch37 closed this as completed Mar 10, 2022
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