Skip to content

Instantly share code, notes, and snippets.

@sugyan
Created May 27, 2016 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sugyan/2ff45298ee728bd3b2d340c66c1d3a22 to your computer and use it in GitHub Desktop.
Save sugyan/2ff45298ee728bd3b2d340c66c1d3a22 to your computer and use it in GitHub Desktop.
import tensorflow as tf
with open('./image.jpg', 'rb') as f:
data = f.read()
image = tf.image.decode_jpeg(data)
print(image.eval(session=tf.Session()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment