daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. test_image = Xtest[4]
  2. test_image = cv2.resize(test_image, (64,64))
  3. test_image = test_image[:,:,np.newaxis]
  4. test_image = np.expand_dims(test_image, axis = 0)
  5. result = model.predict(test_image)
  6.    
  7. [[1.1471398e-02 1.7711835e-05 6.1694984e-05 2.8054390e-07 1.6065275e-04
  8.   9.8699224e-01 1.9591409e-04 3.8560024e-06 4.1441439e-08 1.0961749e-03]]
  9.    
  10. test_image = cv2.imread('imageedit_3_8900841608.jpg', cv2.IMREAD_GRAYSCALE)
  11. test_image = cv2.resize(test_image, (64,64))
  12. test_image = test_image[:,:,np.newaxis]
  13. test_image = np.expand_dims(test_image, axis = 0)
  14. result = model.predict(test_image)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top