Fixed RMSProp
This commit is contained in:
parent
2cae318d1d
commit
69022561f0
@ -22,7 +22,7 @@ class Classifier(object):
|
|||||||
|
|
||||||
self.loaded_model.load_weights(weights_filename)
|
self.loaded_model.load_weights(weights_filename)
|
||||||
self.datagen = ImageDataGenerator(rescale=1. / 255., validation_split=0.25)
|
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"])
|
metrics=["accuracy"])
|
||||||
self.loaded_model.summary()
|
self.loaded_model.summary()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user