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

ViTFeatureExtractor is deprecated #40

Open
arvin-z opened this issue Jun 13, 2023 · 2 comments
Open

ViTFeatureExtractor is deprecated #40

arvin-z opened this issue Jun 13, 2023 · 2 comments

Comments

@arvin-z
Copy link

arvin-z commented Jun 13, 2023

Hi,

When the OCR model is being loaded on the first run, the following warning is shown:
FutureWarning: The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use ViTImageProcessor instead.

@kha-white
Copy link
Owner

Thanks for reporting this

@mlarrarte
Copy link

Hey did you find a solution? I get the error when running get_processor method:

def get_processor(encoder_name, decoder_name): feature_extractor = AutoImageProcessor.from_pretrained(encoder_name).preprocess tokenizer = AutoTokenizer.from_pretrained(decoder_name) processor = TrOCRProcessorCustom(feature_extractor, tokenizer) return processor

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

3 participants