from keras import models # 导入Keras模型和各种神经网络的层 from keras.layers import Dense, Dropout, Flatten, Conv2D, Max Pooling2D model = models.Sequential() # 序贯模型 model.add(Conv2D(filters=32, # 添加Conv2D层, 指定过滤器的个数, 即通道数