vit-gpt2-coco-en Lora Fine-Tuning error #545
DanielPuentee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to fine-tune a Vit model for an image-to-text problem.
The error is the following:
ValueError: You have to specify pixel_values
The error seems clear, however, I can't seem to fix it. The training and validation set already has the value of
pixel_values
Code:
I think the problem comes in the construction of the LoraConfig in particular in the task_type parameter.
I have tried all the possibilities, which I think they are: SEQ_CLS, TOKEN_CLS, SEQ_2_SEQ_LM & CAUSAL_LM. I don't know if that's what the error is, but that's where I think it's going.
So if anyone knows how to fix it or if the error is somewhere else, please tell me.
Beta Was this translation helpful? Give feedback.
All reactions