0
votes

please I need help, I'm working with a colored image dataset on Vit classification using Keras (i get code from this link https://www.philschmid.de/image-classification-huggingface-transformers-keras, and when I call the function process () I get this error : ValueError: "operands could not be broadcast together with shapes (224,224) (3,)".

please how can I fix the error?

It's a working tutorial, you just have to copy paste code.. Here's the full code - Aladin
yes, it's working but I got that error, is the problem with my dataset? - Imene TIMIZAR
Ah, if you are using a different dataset. You need to put it on the same shape as the dataset used on the tutorial. You can compare it with your_dataframe.shape - Aladin
Please do not have us guess, what is the problem with your dataset? You did not give any information about your data! Is it by chance grayscale or one-channel images? - Dr. Snoopy