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

using the ASRN scheme only #31

Closed
munziliashali opened this issue Feb 8, 2019 · 3 comments
Closed

using the ASRN scheme only #31

munziliashali opened this issue Feb 8, 2019 · 3 comments

Comments

@munziliashali
Copy link

Hi @Canjie-Luo,
thank you for this repo and paper. I am working on text recognition on my custom dataset that consist of letter-only words and letter-and-number words, with length of words of maximum 50 characters. So far using meijieru's repo, the result doesn't seem very ok, as the accuracy just reach 40%.

So, I apply MORAN, but got this error:
screen shot 2019-02-08 at 2 01 50 pm

do you have an idea how to fix it?
another question, do you think it is feasible to do ASRN only?

Thank you.

@Canjie-Luo
Copy link
Owner

Please make sure your code is up-to-date and PyTorch version is 0.3. The best way to check out bugs is running our demo.

It's possible to use ASRN only. Just drop MORN in moran.py.

@munziliashali
Copy link
Author

munziliashali commented Feb 13, 2019

Yes, I used Pytorch ver 0.4, so I must change some codes from Tensor to tuple of integer.

One more question though, can I ask why did you use CrossEntropyLoss, instead of CTCLoss like meijieru's? I couldn't catch the reason in the paper..

Thank you.

@Canjie-Luo
Copy link
Owner

We use a decoder based on the attention mechanism. There is a one-to-one correspondence between the predictions and labels in attention mechanism, while in CTC Loss, the length of predictions is not the same with that of the corresponding labels. That's why we use the Cross Entropy Loss.

You're welcome!

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