-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Unused or unrecognized kwargs: padding, max_length, truncation. #30106
Comments
Same problem is occurring. |
Meet the same problem |
Hi @Excuses123, thanks for raising this issue! Could you share a minimal reproducer? |
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Hello, here is a minimal reproducible example. import torch processor = AutoProcessor.from_pretrained("openai/clip-vit-large-patch14-336") url = "http://images.cocodataset.org/val2017/000000039769.jpg" processor(text="a photo of a cat", |
Thanks for sharing @Excuses123. The warnings have started because of new input validation on the image processor. This is good as it shows tokenizer kwargs were being passed to the image processor when they shouldn't be! I've opened a PR to address this |
just to Change code |
System Info
transformers
version: 4.39.2Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Fine-tuning the CLIP model. Previously, I passed both text and images to the processor and specified some parameters for the text: padding, max_length, truncation. Everything was working fine before upgrading to version 4.39. However, after the upgrade, I encountered a warning that affects the training process. How should I resolve this?

Expected behavior
Do I need to separate the text and images for processing and use processor.tokenizer and processor.image_processor separately?
The text was updated successfully, but these errors were encountered: