Input 0 of layer sequential is incompatible with the layer

 Input 0 of layer sequential is incompatible with the layer: expected axis -1 of input shape to have value 3 but received input with shape (None, 48, 48, 4)

问题:输入应该是三通道图像而不是四通道

首先,验证第四通道像素值可不可以去除

(59条消息) python-四通道图像显示,并检验第四通道像素值_努力戒手机中的博客-CSDN博客

解决办法:

(59条消息) python-数据集文件夹及其子文件夹图像-四通道转三通道_努力戒手机中的博客-CSDN博客

你可能感兴趣的:(python)