Fixed RMSProp

This commit is contained in:
Pünkösd Marcell 2020-09-14 15:16:05 +02:00
parent 2cae318d1d
commit 69022561f0

View File

@ -22,7 +22,7 @@ class Classifier(object):
self.loaded_model.load_weights(weights_filename)
self.datagen = ImageDataGenerator(rescale=1. / 255., validation_split=0.25)
self.loaded_model.compile(optimizers.rmsprop(lr=0.0005, decay=1e-6), loss="categorical_crossentropy",
self.loaded_model.compile(optimizers.RMSprop(lr=0.0005, decay=1e-6), loss="categorical_crossentropy",
metrics=["accuracy"])
self.loaded_model.summary()