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 get confidence score of each word using Attn #82

Closed
nbhupendra opened this issue Sep 28, 2019 · 2 comments
Closed

how to get confidence score of each word using Attn #82

nbhupendra opened this issue Sep 28, 2019 · 2 comments

Comments

@nbhupendra
Copy link

nbhupendra commented Sep 28, 2019

I dont want to calculate distance with gt. i want the confidence score for read word by Attn. Like suppose if word read by attn is "hello" and is confidence is 99% or something so that i could discard non english or junk character or word. @ku21fan @YacobBY please help.

@nbhupendra
Copy link
Author

nbhupendra commented Oct 18, 2019

@ku21fan Can you check if it is possible? @YacobBY any thought?

@ku21fan
Copy link
Contributor

ku21fan commented Oct 22, 2019

Hello,

Sorry for the late reply.
I just commit codes about confidence scores.
Please check and test recent version~ (test.py and demo.py) e8b465d

P.S. Recent code may occur error in F.grid_sample(~~, align_corners=True)
because the attribute align_corners of F.grid_sample is introduced in PyTorch 1.3.0.
So you may need to remove , align_corners=True in here or upgrade PyTorch to 1.3.0

Best

@ku21fan ku21fan closed this as completed Oct 22, 2019
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