-
Notifications
You must be signed in to change notification settings - Fork 2k
Attention Heatmap? #227
Comments
Hi, @ngcabang ! |
Same here, I would like to get each alignment map for each of the top-k translations when beam search is activated, is this planned any time soon? If not, what should be changed for this to work @oahziur ? |
@ttrouill @nave01314 Actually, I am not sure if the attention image for BeamSearch will be correct out of the box since we traversed the decoding tree in BeamSearchDecoder to get the final results, so I guess we will need to do the similar gather_tree operation in the end. We can revisit this after beam_search and alignment_history are compatible. @nave01314 Can you print the |
@oahziur Ok thanks for the precisions, is there an already existing branch working on beam_search and alignment_history compatibility that I can follow/contribute? |
@oahziur Looks like beam_search and alignment_history compatibility issue will soon be resolved and merged |
@nave01314 the same problem, how do you solve it? |
@oahziur Dear, I can see the attention image by tensorboard now , But there this is only one image for one step, does that mean the image is for all training data? How can I get image for one given sentences? |
How do I create the attention heat map based from Attention model like the image below?
PS: I can access the graph through tfdebug but I don't know what I am searching for
The text was updated successfully, but these errors were encountered: