Skip to content

I don't understand the use of Hard Attention in your code. #2

Description

@bankanikhil29

Hard attention has such low accuracy on the validation data even after 10 epochs.
Is it just used for drawing the heat map?
Why is my accuracy affected in this case compared to my soft Attention?

From the papers I learnt that Soft Attention gives to multiple objects as compared to Hard attention. To cross check this I gave my model an image having 2 digits.

Soft Attention works well by giving attention to both the digits.

test_heat map

But in Hard attention I expected it to give attention to just one of the digits. Though the result is same compared to Soft Attention and prediction is affected.

download

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions