FutureWarning when making inference
#66
by
gabriel-zhang
- opened
Hi there, I wonder why am I getting the FutureWarning when running the model for inference? Here is the error message:
/home/ec2-user/gabriel/language-detection/env/lib/python3.10/site-packages/transformers/models/auto/image_processing_auto.py:510: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` instead
warnings.warn(
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
New version of transformers
needs to distinguish image_processing
to ImageProcessorFast
or ImageProcessorSlow
, just like what they've required for tokenizer
. As for now, if you're using transformers <= 4.42
, you can use the model correctly ignoring the warning.
We'll eliminate this warning in the future updates.
Got it. Thank you!
gabriel-zhang
changed discussion status to
closed