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

Minor fix to Donut SROIE training #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alienware
Copy link

@alienware alienware commented Aug 1, 2023

WHAT

  • Import to_pil_image from ImageFeatureExtractionMixin instead of processor.feature_extractor
  • Fixes sample and test_sample references

WHY

Fixes AttributeError: 'DonutImageProcessor' object has no attribute 'to_pil_image'

@alienware
Copy link
Author

First of all, lots of thanks to you for providing these notebooks and for your writeups. These are a blessings in picking up document AI. 🙏

The fix I'm proposing may not be the ideal one, but what I tried after I couldn't get the to_pil_image statement to work. I'm assuming I am facing this error due to a different transformers version.

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

Successfully merging this pull request may close these issues.

1 participant