da03 / Attention-OCR

Visual Attention based OCR
MIT License
1.11k stars 362 forks source link

generating attention mask based on the SavedModel output #112

Open abucka opened 3 years ago

abucka commented 3 years ago

Hi,

I try to visualise attention masks based on the output of SavedModel. What is the meaning of real_len variable in visualise_attention function and why is the attention mask convolved with [0.199547,0.200226,0.200454,0.200226,0.199547]?