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

error in max_step #10

Open
mohanades opened this issue Jan 2, 2023 · 1 comment
Open

error in max_step #10

mohanades opened this issue Jan 2, 2023 · 1 comment

Comments

@mohanades
Copy link

mohanades commented Jan 2, 2023

Hi,
when I am trying to train your source code in 5'th epoch (maybe or less maybe or more) I encountered error that stop training. so I increase max_step . But when I increase max_step(max_step==100K) I have this problem with loss and acc that

loss>100 && acc==0 .I attach screen of this problem.
What changing I should do in source code to continue training model without this problem?

error

@uakarsh
Copy link
Owner

uakarsh commented Jan 2, 2023

Hi @mohanades, I have realized some time back that, I have prepared the task in wrong way.

So, here is what I have done

I have tokenized the answers and then have trained a token classification kind of model. And when measuring the accuracy, I measure the accuracy on just the tokens that are in the answers and ignore the others.

But, here is what I should do instead

Given an ocr, an answer, I should find the answer in OCR and give two indices, one is start and other is end, and that means in the ocr from start to end indices lies the answer. And train a model to predict these two indices.

And, in this way, I believe the authors have came across the different metrics used in the paper.

I am learning (and have used this for the first time), so maybe this was a mistake from my side. Again apologies. Sorry for tagging @furkanbiten, but maybe can you reflect if this is what, I have correctly understood.

Regards,
Akarsh

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