OFA icon indicating copy to clipboard operation
OFA copied to clipboard

VQA algorithm data loader have no truncation for answer

Open TheOnlylight opened this issue 1 year ago • 1 comments

I am trying to use vqa on a task to extract information from text-riched image. The thing is that in the cases that answer is too long the model would report a mismatch in tensor size. I checked the data design and didn't find a truncation setting for the answer data. How can I solve this.

The size of tensor a (1161) must match the size of tensor b (1024)

TheOnlylight avatar Mar 08 '23 01:03 TheOnlylight

Hi, can you provide more details about the samples which caused the errors?

yangapku avatar Mar 15 '23 06:03 yangapku