Skip to content

Commit ae05057

Browse files
committed
complete the implementation of the resnet test codes
1 parent 412a10f commit ae05057

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

keras_image_classifier/library/resnet.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from keras.applications.imagenet_utils import preprocess_input
99
from keras.utils.vis_utils import model_to_dot
1010
from keras.utils import plot_model
11-
from keras_image_classifier.resnets_utils import *
11+
from keras_image_classifier.library.resnets_utils import *
1212
from keras.initializers import glorot_uniform
1313
import scipy.misc
1414
import 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

244250
def main():
245251
identity_block_test()

0 commit comments

Comments
 (0)