How to use a data collator when dealing with text and images

I have the same issue. Currently I am using the default collator and I get this error: ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided [‘pixel_values’, ‘labels’]. Have you found a solution?

1 Like