Added attention visualization function#202
Conversation
|
Currently, the function |
sw005320
left a comment
There was a problem hiding this comment.
LGTM. Can you add an option to enable it? Also, the use case would be to save the attention weight for every epoch, and see how it behaves. So, it would be better to have such storing functions.
|
I implemented attention save function as chainer extension. |
| CTC_LOSS_THRESHOLD = 10000 | ||
| CTC_SCORING_RATIO = 1.5 | ||
| MAX_DECODER_OUTPUT = 5 | ||
| MAX_SHOW_ATTENTION = 1 |
There was a problem hiding this comment.
how about controlling this as an option? For example, --save-attention can accept the number of attention images (default 0).
- remove visulization option from E2E - modify save-attention option to get integer value - modify default save directory
|
LGTM |
|
Very cool! |
Added attention visualization function (#172).