File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
keras_image_classifier/library Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 88from keras .applications .imagenet_utils import preprocess_input
99from keras .utils .vis_utils import model_to_dot
1010from keras .utils import plot_model
11- from keras_image_classifier .resnets_utils import *
11+ from keras_image_classifier .library . resnets_utils import *
1212from keras .initializers import glorot_uniform
1313import scipy .misc
1414import keras .backend as K
@@ -240,6 +240,12 @@ def ResNet50_test():
240240 print ("X_test shape: " + str (X_test .shape ))
241241 print ("Y_test shape: " + str (Y_test .shape ))
242242
243+ model .fit (X_train , Y_train , epochs = 2 , batch_size = 32 )
244+
245+ preds = model .evaluate (X_test , Y_test )
246+ print ("Loss = " + str (preds [0 ]))
247+ print ("Test Accuracy = " + str (preds [1 ]))
248+
243249
244250def main ():
245251 identity_block_test ()
You can’t perform that action at this time.
0 commit comments