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 can I train the model with the dataset in the paper? #8

Open
Alexsong111 opened this issue Jul 31, 2023 · 4 comments
Open

How can I train the model with the dataset in the paper? #8

Alexsong111 opened this issue Jul 31, 2023 · 4 comments

Comments

@Alexsong111
Copy link

If I run the script “Train a model from scratch”, it does not use the dataset in the paper.

I hope to use your dataset to train your model again to get a same trained model with yours. Thanks!

@jarobyte91
Copy link
Owner

The code in Train a new model from scratch is to create new models, the first two lines are some dummy data to train the model on.
You can load the models developed in the paper by looking at the code in Load one of the pre-trained models:

image

If you want to do all the training all over again, you need to look into the notebooks folder, which contains the step-by-step process of how the models were trained. Unfortunately, it's a bit outdated, so you will need to do some minor modifications.

@jarobyte91
Copy link
Owner

You can also look at previous issues to see if that's what your problem is:

https://github.com/jarobyte91/post_ocr_correction/issues?q=is%3Aissue+is%3Aclosed

@Alexsong111
Copy link
Author

The code in Train a new model from scratch is to create new models, the first two lines are some dummy data to train the model on. You can load the models developed in the paper by looking at the code in Load one of the pre-trained models:

image

If you want to do all the training all over again, you need to look into the notebooks folder, which contains the step-by-step process of how the models were trained. Unfortunately, it's a bit outdated, so you will need to do some minor modifications.

Hi, I tried to update the code in notebook before, but encounter some difficulties. Could you please update the code in notebook?

@jarobyte91
Copy link
Owner

What difficulties specifically? You need to replace the following:

pytorch_decoding --> pytorch_beam_search
ocr_correction --> post_ocr_correction

These are the old names of the packages

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