Traceback (most recent call last):
File "Convolutional5.py", line 577, in <module>
TestModelOnImage(model, "../../storage/150717_150727_Helios_4165t2_Crop1/", 31, 1, "../../storage/NN_Results_Crop1_1/")
File "Convolutional5.py", line 446, in TestModelOnImage
probas = model.predict_proba(imtest, batch_size=SizeX-2*ws2, verbose=0)
File "/eppec/storage/sw/conda/envs/tensorflow/lib/python2.7/site-packages/keras/models.py", line 535, in predict_proba
raise Exception('The model needs to be compiled before being used.')
Exception: The model needs to be compiled before being used.
def LoadModel(ModelArchitecturePath, ModelWeightsPath):
model = model_from_json(open(ModelArchitecturePath).read())
model.load_weights(ModelWeightsPath)
return model
Any idea?
--
You received this message because you are subscribed to a topic in the Google Groups "Keras-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/keras-users/d4fRjfu23aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/60fe072a-71c7-439e-ac6f-d0effb2e48c2%40googlegroups.com.