如何将这些图像保存为网络图像,然后将其作为图像加载。
model = Sequential()
model.add(Dense(512, activation='relu', input_dim=3250))
model.add(Dropout(0.5))
model.add(Dense(512, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(512, activation='sigmoid'))
model.add(Dropout(0.5))
model.add(Dense(512, activation='sigmoid'))
model.add(Dropout(0.5))
model.add(Dense(613, activation='softmax'))
model.summary()
model.save_weights('.hdf5')
model.load_weights('.hdf5')