ValueError: Negative dimension size caused by subtracting 3 from 1 for 'pool1/MaxPool'
在定义LetNet5网络模型时候,遇到了下述问题此为图片通道数据格式问题defLeNet5(w_path=None):input_shape=(1,img_rows,img_cols)img_input=Input(shape=input_shape)x=Conv2D(32,(3,3),activation="relu",padding="same",name="conv1")(img_input