keras-finetuning icon indicating copy to clipboard operation
keras-finetuning copied to clipboard

ValueError: NumpyArrayIterator is set to use the data format convention "channels_last"

Open gabriel-zly opened this issue 4 years ago • 1 comments

ValueError: NumpyArrayIterator is set to use the data format convention "channels_last" (channels on axis 3), i.e. expected either 1, 3 or 4 channels on axis 3. However, it was passed an array with shape (80, 3, 224, 224) (224 channels).

I can load dataset and model successfully, but I can't find the answer online. I run the code in windows7, and I modify the code, so I don't know the reason. Is this a problem with data processing?

gabriel-zly avatar Mar 30 '20 01:03 gabriel-zly

google: channels_last channels_first;keras version

raoquanquan avatar Apr 05 '20 14:04 raoquanquan