如果在使用keras模型出现ValueError: The channel dimension of the inputs should be defined. Found `None’
表示你要将图像数据格式改为(h,w,channel),这个可以在
C:\Users\alin\.keras下打开keras.json文件
将"image_data_format": "channels_first", 修改为"image_data_format": "channels_last",
即可,这个问题一直困扰我很久,希望给大家一些提示吧