Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test_image = Xtest[4]
- test_image = cv2.resize(test_image, (64,64))
- test_image = test_image[:,:,np.newaxis]
- test_image = np.expand_dims(test_image, axis = 0)
- result = model.predict(test_image)
- [[1.1471398e-02 1.7711835e-05 6.1694984e-05 2.8054390e-07 1.6065275e-04
- 9.8699224e-01 1.9591409e-04 3.8560024e-06 4.1441439e-08 1.0961749e-03]]
- test_image = cv2.imread('imageedit_3_8900841608.jpg', cv2.IMREAD_GRAYSCALE)
- test_image = cv2.resize(test_image, (64,64))
- test_image = test_image[:,:,np.newaxis]
- test_image = np.expand_dims(test_image, axis = 0)
- result = model.predict(test_image)
Add Comment
Please, Sign In to add comment