本文共 740 字,大约阅读时间需要 2 分钟。
Failed to import pydot. You must install pydot and graphviz for pydotprint
to work
from keras.layers import Conv2D, MaxPool2Dfrom keras.layers import Dense, Flattenmodel = Sequential()model.add(Conv2D(32, kernel_size=(5,5), activation='relu', input_shape = (28 ,28,1)))model.add(MaxPool2D(pool_size=(2,2), strides=(2,2)))model.add(Conv2D(64, kernel_size=(5,5), activation='relu'))model.add(MaxPool2D(pool_size=(2,2), strides=(2,2)))model.add(Flatten())model.add(Dense(1000, activation='relu'))model.add(Dense(10, activation='softmax'))model.summary()plot_model(model, to_file="D:\\20keras\\3.png", show_shapes=True)
转载地址:http://vebqj.baihongyu.com/