Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Model inferencing from the saved files generated by train.py #322

Open
rahulanilal opened this issue Nov 22, 2024 · 0 comments
Open

Model inferencing from the saved files generated by train.py #322

rahulanilal opened this issue Nov 22, 2024 · 0 comments

Comments

@rahulanilal
Copy link

I have prepared a custom annotated dataset to fine tune DONUT, specifically for Invoice Data Extraction. The train.py file works just fine, and provides good results on the validation dataset which is part of the training script. But I am not able to get the fine-tuned model back from the saved files.

The errors I have encountered include 'SwinTransformer' object has no attribute 'pos_drop', 'The checkpoint you are trying to load has model type donut but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.', and some key mismatch issues. I have also tried cloning the entire repo and running the train and test commands as provided by them.

I have also seen that it is officially posted on the GitHub that there are issues in configuring the testing environments for DONUT, have they been resolved yet? Does my problem come under that as well?

PFA the files that are generated by the train.py
saveddonutfiles

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant