I try to use the trainer in transformers to finetune a model, but I don’t know how to input the data into the model, there is only an example of NLP, Can anyone show me a example about training using custom image datasets?
I try to input the self-implmented class, got "
ValueError: The batch received was empty, your model won’t be able to train on it. Double-check that your training dataset contains keys expected by the model: pixel_values, labels,…
pixel_values seems to be a feature set, I assume - from the limited information you have given, it’s an array of arrays, containing x, y locations and the corresponding color.
Usually you don’t create that yourself, you use some dataset preparation function to extract those features from a given image.
But as you neither named the model, nor gave us any further information than an error message, this is hard to reply